diff options
| author | Jeff Roberson <jeff@FreeBSD.org> | 2007-07-19 08:49:16 +0000 |
|---|---|---|
| committer | Jeff Roberson <jeff@FreeBSD.org> | 2007-07-19 08:49:16 +0000 |
| commit | 6eeb364b4cbe1ea7934492957145447d79dd9cca (patch) | |
| tree | 644f97eb982b23af9ac970ccbc4077b3a0dd8c7a /sys/kern | |
| parent | 74cfef5c883652b3290147af52ce253e22644075 (diff) | |
Notes
Diffstat (limited to 'sys/kern')
| -rw-r--r-- | sys/kern/kern_sig.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index c473418ca403..e4a60e7a855a 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -2365,12 +2365,8 @@ tdsigwakeup(struct thread *td, int sig, sig_t action, int intrval) * Bring the priority of a thread up if we want it to get * killed in this lifetime. */ - if (action == SIG_DFL && (prop & SA_KILL)) { - if (p->p_nice > 0) - sched_nice(td->td_proc, 0); - if (td->td_priority > PUSER) - sched_prio(td, PUSER); - } + if (action == SIG_DFL && (prop & SA_KILL) && td->td_priority > PUSER) + sched_prio(td, PUSER); if (TD_ON_SLEEPQ(td)) { /* |
