Pass me the pointy hat. Do not hold sched_lock over psignal.
Submitted by: alfred
This commit is contained in:
parent
28d1c34421
commit
894653d6fa
@ -381,8 +381,8 @@ ptrace(curp, uap)
|
||||
if (p->p_stat == SSTOP) {
|
||||
p->p_xstat = uap->data;
|
||||
setrunnable(p);
|
||||
psignal(p, SIGCONT);
|
||||
mtx_exit(&sched_lock, MTX_SPIN);
|
||||
psignal(p, SIGCONT);
|
||||
} else {
|
||||
mtx_exit(&sched_lock, MTX_SPIN);
|
||||
if (uap->data) {
|
||||
|
Loading…
Reference in New Issue
Block a user