From 288cf6cda6f27161242e8e87656c2cd288c33ebc Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Wed, 8 Nov 1995 18:12:19 +0000 Subject: (S_proc_getprocinfo): Don't attempt msg_report_wait if P->p_msgport is not valid. --- proc/info.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'proc/info.c') 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); -- cgit v1.2.3