Protect p_nice and P_TRACED in psignal() above the switch statement with
sched_lock.
This commit is contained in:
parent
f8838555e8
commit
5192404af2
@ -1083,9 +1083,11 @@ 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…
Reference in New Issue
Block a user