Do not confuse proc with proc_addr if you want a bug free kernel.
This commit is contained in:
parent
4686e11dd5
commit
9a1dfc5128
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ register struct proc *rc; /* slot of process to clean up */
|
||||||
if (saved_rts_flags & SENDING) {
|
if (saved_rts_flags & SENDING) {
|
||||||
int target_proc;
|
int target_proc;
|
||||||
okendpt(rc->p_sendto_e, &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 */
|
while (*xpp != NIL_PROC) { /* check entire queue */
|
||||||
if (*xpp == rc) { /* process is on the queue */
|
if (*xpp == rc) { /* process is on the queue */
|
||||||
*xpp = (*xpp)->p_q_link; /* replace by next process */
|
*xpp = (*xpp)->p_q_link; /* replace by next process */
|
||||||
|
|
Loading…
Reference in a new issue