From: Philip Homburg Date: Wed, 8 Mar 2006 11:59:59 +0000 (+0000) Subject: Do not confuse proc with proc_addr if you want a bug free kernel. X-Git-Tag: v3.1.2a~288 X-Git-Url: http://zhaoyanbai.com/repos/CHANGES?a=commitdiff_plain;h=9a1dfc5128a1059529daf89be1ca6ced36abcda2;p=minix.git Do not confuse proc with proc_addr if you want a bug free kernel. --- diff --git a/kernel/system/do_exit.c b/kernel/system/do_exit.c index ecda123d9..670a07108 100644 --- a/kernel/system/do_exit.c +++ b/kernel/system/do_exit.c @@ -88,7 +88,7 @@ register struct proc *rc; /* slot of process to clean up */ if (saved_rts_flags & SENDING) { int target_proc; okendpt(rc->p_sendto_e, &target_proc); - xpp = &proc[target_proc].p_caller_q; /* destination's queue */ + xpp = &proc_addr(target_proc)->p_caller_q; /* destination's queue */ while (*xpp != NIL_PROC) { /* check entire queue */ if (*xpp == rc) { /* process is on the queue */ *xpp = (*xpp)->p_q_link; /* replace by next process */