- 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:
parent
dce62f3086
commit
6ec1292f83
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user