In tdsigwakeup(), use TD_ON_SLEEPQ() rather than TD_IS_SLEEPING() to see if
a thread is on a sleep queue and should have it's sleep aborted. Reported by: Thierry Herbelot thierry at herbelot dot com
This commit is contained in:
parent
f7f65c0ed2
commit
80c4433c18
@ -1953,7 +1953,7 @@ tdsigwakeup(struct thread *td, int sig, sig_t action)
|
||||
td->td_priority = PUSER;
|
||||
}
|
||||
}
|
||||
if (TD_IS_SLEEPING(td)) {
|
||||
if (TD_ON_SLEEPQ(td)) {
|
||||
/*
|
||||
* If thread is sleeping uninterruptibly
|
||||
* we can't interrupt the sleep... the signal will
|
||||
|
Loading…
x
Reference in New Issue
Block a user