diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-11-08 18:12:19 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-11-08 18:12:19 +0000 |
commit | 288cf6cda6f27161242e8e87656c2cd288c33ebc (patch) | |
tree | 4c90234f444a8de029f586870653b5e1bd873f60 /proc | |
parent | 01d723e6ba82714f9ffc4826a8169dfaf321a7d0 (diff) |
(S_proc_getprocinfo): Don't attempt msg_report_wait if P->p_msgport is
not valid.
Diffstat (limited to 'proc')
-rw-r--r-- | proc/info.c | 4 |
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); |