Do not confuse proc with proc_addr if you want a bug free kernel.

This commit is contained in:
Philip Homburg 2006-03-08 11:59:59 +00:00
parent 4686e11dd5
commit 9a1dfc5128

View file

@ -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 */