summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--process.c2
-rw-r--r--rootdir.c6
2 files changed, 8 insertions, 0 deletions
diff --git a/process.c b/process.c
index 6652a4e9..e812a1f1 100644
--- a/process.c
+++ b/process.c
@@ -362,6 +362,8 @@ process_lookup_pid (struct ps_context *pc, pid_t pid, struct node **np)
if (err)
return EIO;
+ proc_stat_set_flags (ps, PSTAT_NO_MSGPORT);
+
err = proc_stat_set_flags (ps, PSTAT_OWNER_UID);
if (err || ! (proc_stat_flags (ps) & PSTAT_OWNER_UID))
{
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))
{