summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--proc/info.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/proc/info.c b/proc/info.c
index f8fcda2e..7169fe09 100644
--- a/proc/info.c
+++ b/proc/info.c
@@ -416,7 +416,9 @@ S_proc_getprocinfo (struct proc *callerp,
break;
}
- if (flags & PI_FETCH_THREAD_WAITS)
+ if ((flags & PI_FETCH_THREAD_WAITS)
+ && p->p_msgport != MACH_PORT_NULL
+ && !p->p_deadmsg)
/* Errors are not significant here. */
msg_report_wait (p->p_msgport, thds[i],
&pi->threadinfos[i].rpc_block);