summaryrefslogtreecommitdiff
path: root/libps
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-07-11 02:50:56 +0000
committerMiles Bader <miles@gnu.org>1996-07-11 02:50:56 +0000
commitca0b55aad54e319556177d67fd83c5ee551a41b0 (patch)
tree39498668782ab177da806fd2a49d1dc8813f952e /libps
parenta3dd6221aa8eacf467014534b90feb18f7938fa3 (diff)
(set_procinfo_flags): Don't use fake "*" wait value if there's no msgport.
Diffstat (limited to 'libps')
-rw-r--r--libps/procstat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libps/procstat.c b/libps/procstat.c
index 5f01ef4e..6ab66f04 100644
--- a/libps/procstat.c
+++ b/libps/procstat.c
@@ -641,7 +641,8 @@ set_procinfo_flags (struct proc_stat *ps, ps_flags_t need, ps_flags_t have)
&ps->thread_wait, &ps->thread_rpc);
have |= PSTAT_THREAD_WAIT;
}
- else if ((have & PSTAT_NUM_THREADS) && ps->num_threads > 3)
+ else if (!(have & PSTAT_NO_MSGPORT)
+ && (have & PSTAT_NUM_THREADS) && ps->num_threads > 3)
/* More than 3 threads (1 user thread + libc signal thread +
possible itimer thread) always results in this value for the
process's thread_wait field. For fewer threads, we should