From 0f07be8955c4febfd2662e222f0371c8a92ae1d2 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Tue, 4 May 1999 17:05:27 +0000 Subject: 1999-05-01 Mark Kettenis * msg.c (check_msgport_death): New function. (S_proc_getmsgport): Use it. * proc.h (check_msgport_death): Provide prototype. * info.c (S_proc_getprocinfo): Call check_msgport_death to make sure that our knowledge about P's message port is up to date. --- 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 c44bde6a..1a398461 100644 --- a/proc/info.c +++ b/proc/info.c @@ -376,7 +376,9 @@ S_proc_getprocinfo (struct proc *callerp, return ESRCH; task = p->p_task; - msgport = p->p_deadmsg ? MACH_PORT_NULL : p->p_msgport; + + check_msgport_death (p); + msgport = p->p_msgport; if (*flags & PI_FETCH_THREAD_DETAILS) *flags |= PI_FETCH_THREADS; -- cgit v1.2.3