From ca0b55aad54e319556177d67fd83c5ee551a41b0 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Thu, 11 Jul 1996 02:50:56 +0000 Subject: (set_procinfo_flags): Don't use fake "*" wait value if there's no msgport. --- libps/procstat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libps/procstat.c') 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 -- cgit v1.2.3