diff options
author | ps <ps@FreeBSD.org> | 2000-12-30 00:44:44 +0000 |
---|---|---|
committer | ps <ps@FreeBSD.org> | 2000-12-30 00:44:44 +0000 |
commit | 250c89d360648df015d99a4f875b1ab1502c72fd (patch) | |
tree | 2e0e8816a57b6c827f7028313239f1b4412f3fb3 /sys/kern/sys_process.c | |
parent | b792d44931869a1f312f6efea7733cbec9901766 (diff) | |
download | FreeBSD-src-250c89d360648df015d99a4f875b1ab1502c72fd.zip FreeBSD-src-250c89d360648df015d99a4f875b1ab1502c72fd.tar.gz |
Pass me the pointy hat. Do not hold sched_lock over psignal.
Submitted by: alfred
Diffstat (limited to 'sys/kern/sys_process.c')
-rw-r--r-- | sys/kern/sys_process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index 0bd49fc..e94378d 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) { |