Release proc lock after setting signal queue.
PR: kern/167727 Submitted by: Jinjun Gao <gjinjun gmail com> MFC after: 2 weeks
This commit is contained in:
parent
c0de32bfd6
commit
f7e33a4a67
@ -182,6 +182,7 @@ kproc_suspend(struct proc *p, int timo)
|
||||
return (EINVAL);
|
||||
}
|
||||
SIGADDSET(p->p_siglist, SIGSTOP);
|
||||
PROC_UNLOCK(p);
|
||||
wakeup(p);
|
||||
return msleep(&p->p_siglist, &p->p_mtx, PPAUSE | PDROP, "suspkp", timo);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user