summaryrefslogtreecommitdiff
path: root/rootdir.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2011-12-27 17:31:20 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-12-27 17:31:20 +0100
commitd4849e6ebdae76511eb370724f2a90be54e00d5c (patch)
treee31e89ae2a98f05414ed4ac0cbc2563c9039b6b2 /rootdir.c
parentd59e7933fd54562dfd0c1ae4988580deb02feac2 (diff)
Do not use msgport information
* process.c (process_lookup_pid): Set PSTAT_NO_MSGPORT flag. * rootdir.c (get_boottime, get_idletime, rootdir_gc_cmdline): Set PSTAT_NO_MSGPORT flag.
Diffstat (limited to 'rootdir.c')
-rw-r--r--rootdir.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/rootdir.c b/rootdir.c
index 1fa71b03..018de617 100644
--- a/rootdir.c
+++ b/rootdir.c
@@ -52,6 +52,8 @@ get_boottime (struct ps_context *pc, struct timeval *tv)
if (err)
return err;
+ proc_stat_set_flags (ps, PSTAT_NO_MSGPORT);
+
err = proc_stat_set_flags (ps, PSTAT_TASK_BASIC);
if (err || !(proc_stat_flags (ps) & PSTAT_TASK_BASIC))
err = EIO;
@@ -82,6 +84,8 @@ get_idletime (struct ps_context *pc, struct timeval *tv)
pst = NULL, tbi = NULL;
+ proc_stat_set_flags (ps, PSTAT_NO_MSGPORT);
+
err = proc_stat_set_flags (ps, PSTAT_NUM_THREADS);
if (err || !(proc_stat_flags (ps) & PSTAT_NUM_THREADS))
{
@@ -360,6 +364,8 @@ rootdir_gc_cmdline (void *hook, char **contents, ssize_t *contents_len)
if (err)
return EIO;
+ proc_stat_set_flags (ps, PSTAT_NO_MSGPORT);
+
err = proc_stat_set_flags (ps, PSTAT_ARGS);
if (err || ! (proc_stat_flags (ps) & PSTAT_ARGS))
{