]> Zhao Yanbai Git Server - minix.git/commitdiff
Do not confuse proc with proc_addr if you want a bug free kernel.
authorPhilip Homburg <philip@cs.vu.nl>
Wed, 8 Mar 2006 11:59:59 +0000 (11:59 +0000)
committerPhilip Homburg <philip@cs.vu.nl>
Wed, 8 Mar 2006 11:59:59 +0000 (11:59 +0000)
kernel/system/do_exit.c

index ecda123d9e21190ef890c3513526b460332dad15..670a071089093048002446cadacf52837cc7596a 100644 (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 */