Pass me the pointy hat. Do not hold sched_lock over psignal.

Submitted by:	alfred
This commit is contained in:
Paul Saab 2000-12-30 00:44:44 +00:00
parent 28d1c34421
commit 894653d6fa

View File

@ -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) {