summaryrefslogtreecommitdiff
path: root/proclist.c
diff options
context:
space:
mode:
authorJeremie Koenig <jk@jk.fr.eu.org>2010-08-18 20:44:54 +0000
committerJeremie Koenig <jk@jk.fr.eu.org>2010-08-30 14:14:49 +0200
commitf89f2ccd6f4dde2dc6c6ffabd0f784ecf2a46617 (patch)
treed91af49685bf319a8a38d8d5e2963f4b34542091 /proclist.c
parent85feec46e7d8884a9a34276c7cad8133c5fbb02e (diff)
Fuse the proclist into the root node
* dircat.c, dircat.h: New files, merge directories. * Makefile: Add the dircat module. * main.c: Use dircat to merge the proclist into the root directory, instead of having it as a stand-alone one. * procfs.h, procfs.c: Add a "refresh hack" to have the contents of the root directory recreated on each request. * proclist.c (proclist_make_node): Enable the hack in question.
Diffstat (limited to 'proclist.c')
-rw-r--r--proclist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/proclist.c b/proclist.c
index 75b61a2e..94a7a04d 100644
--- a/proclist.c
+++ b/proclist.c
@@ -74,6 +74,7 @@ proclist_make_node (process_t process)
.lookup = proclist_lookup,
.cleanup_contents = procfs_cleanup_contents_with_free,
.cleanup = free,
+ .enable_refresh_hack_and_break_readdir = 1,
};
struct proclist_node *pl;