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
This commit is contained in:
parent
cf2e52f3de
commit
568ae39fd5
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user