- If delivering a signal will result in killing a process that has a

nice value above 0, set it to 0 so that it may proceed with haste.
   This is especially important on ULE, where adjusting the priority
   does not guarantee that a thread will be granted a greater time slice.
This commit is contained in:
Jeff Roberson 2004-12-13 16:45:57 +00:00
parent 3d96167a54
commit 3ef6ac3361
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138811

View File

@ -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);
}