diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-12-27 17:31:20 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-12-27 17:31:20 +0100 |
commit | d4849e6ebdae76511eb370724f2a90be54e00d5c (patch) | |
tree | e31e89ae2a98f05414ed4ac0cbc2563c9039b6b2 /rootdir.c | |
parent | d59e7933fd54562dfd0c1ae4988580deb02feac2 (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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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)) { |