Lines 2370-2376
tdsigwakeup(struct thread *td, int sig, sig_t action, int intrval)
Link Here
|
2370 |
* Bring the priority of a thread up if we want it to get |
2370 |
* Bring the priority of a thread up if we want it to get |
2371 |
* killed in this lifetime. |
2371 |
* killed in this lifetime. |
2372 |
*/ |
2372 |
*/ |
2373 |
if (action == SIG_DFL && (prop & SA_KILL) && td->td_priority > PUSER) |
2373 |
if (action == SIG_DFL && (prop & SA_KILL) != 0 && |
|
|
2374 |
td->td_priority > PUSER && !TD_IS_IDLETHREAD(td)) |
2374 |
sched_prio(td, PUSER); |
2375 |
sched_prio(td, PUSER); |
2375 |
if (TD_ON_SLEEPQ(td)) { |
2376 |
if (TD_ON_SLEEPQ(td)) { |
2376 |
/* |
2377 |
/* |
Lines 2408-2414
tdsigwakeup(struct thread *td, int sig, sig_t action, int intrval)
Link Here
|
2408 |
/* |
2409 |
/* |
2409 |
* Give low priority threads a better chance to run. |
2410 |
* Give low priority threads a better chance to run. |
2410 |
*/ |
2411 |
*/ |
2411 |
if (td->td_priority > PUSER) |
2412 |
if (td->td_priority > PUSER && !TD_IS_IDLETHREAD(td)) |
2412 |
sched_prio(td, PUSER); |
2413 |
sched_prio(td, PUSER); |
2413 |
|
2414 |
|
2414 |
wakeup_swapper = sleepq_abort(td, intrval); |
2415 |
wakeup_swapper = sleepq_abort(td, intrval); |