From 894653d6fac96310a5c69b5e0ce5bb7bc68b04f0 Mon Sep 17 00:00:00 2001 From: Paul Saab Date: Sat, 30 Dec 2000 00:44:44 +0000 Subject: [PATCH] Pass me the pointy hat. Do not hold sched_lock over psignal. Submitted by: alfred --- sys/kern/sys_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index 0bd49fc15084..e94378d6d829 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -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) {