diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2001-01-06 00:08:39 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2001-01-06 00:08:39 +0000 |
| commit | 5192404af2d6a9f73d26ac5c1d9fac5ef83fb357 (patch) | |
| tree | 1478ff7e8904f75712f7ab92164d2b4a9c3ca310 | |
| parent | f8838555e87f543e09d714d0e2669fe1e1ad5cb7 (diff) | |
Notes
| -rw-r--r-- | sys/kern/kern_sig.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index facce03bec30b..29d2b603f497b 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -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); |
