From: Ben Gras Date: Fri, 21 Oct 2005 18:13:10 +0000 (+0000) Subject: Test for SENDING else RECEIVING should be SENDING, then RECEIVING. X-Git-Tag: v3.1.2a~558 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/index.css?a=commitdiff_plain;h=85209d2e29da56af6ae6cec57966c2b92353e9ea;p=minix.git Test for SENDING else RECEIVING should be SENDING, then RECEIVING. --- diff --git a/kernel/system/do_exit.c b/kernel/system/do_exit.c index 38110f590..783d12c70 100644 --- a/kernel/system/do_exit.c +++ b/kernel/system/do_exit.c @@ -109,7 +109,7 @@ register struct proc *rc; /* slot of process to clean up */ #endif if (rp->p_rts_flags == 0) lock_enqueue(rp);/* let process run again */ } - else if ((rp->p_rts_flags & SENDING) && rp->p_sendto == proc_nr(rc)) { + if ((rp->p_rts_flags & SENDING) && rp->p_sendto == proc_nr(rc)) { rp->p_reg.retreg = EDSTDIED; /* report destination died */ rp->p_rts_flags &= ~SENDING; /* no longer sending */ #if DEBUG_ENABLE_IPC_WARNINGS