summaryrefslogtreecommitdiff
path: root/sys/kern/kern_sig.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_sig.c')
-rw-r--r--sys/kern/kern_sig.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index a3513ebbf3f1..f5c935b8e15f 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -1959,6 +1959,8 @@ tdsigwakeup(struct thread *td, int sig, sig_t action)
* 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);
}