summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-01-19 08:23:22 +0000
committerjhb <jhb@FreeBSD.org>2001-01-19 08:23:22 +0000
commita4116607b81f4cd2caf39b9e755495af59c240a5 (patch)
treee5f8e7ec19b34d555ab5fa2148d2a3e20b3523f2
parent25fc8759df8264441d5a584fc5b038b15463849e (diff)
downloadFreeBSD-src-a4116607b81f4cd2caf39b9e755495af59c240a5.zip
FreeBSD-src-a4116607b81f4cd2caf39b9e755495af59c240a5.tar.gz
Revert revision 1.102. I don't think p_nice needs to be protected with
sched_lock, and I'm fairly certain P_TRACED will be protected with the proc lock instead. Pointed out indirectly by: bde
-rw-r--r--sys/kern/kern_sig.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index 70a3569..0876245 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -1084,11 +1084,9 @@ psignal(p, sig)
action = SIG_DFL;
}
- mtx_enter(&sched_lock, MTX_SPIN);
if (p->p_nice > NZERO && action == SIG_DFL && (prop & SA_KILL) &&
(p->p_flag & P_TRACED) == 0)
p->p_nice = NZERO;
- mtx_exit(&sched_lock, MTX_SPIN);
if (prop & SA_CONT)
SIG_STOPSIGMASK(p->p_siglist);
OpenPOWER on IntegriCloud