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:
John Baldwin 2004-05-20 20:17:28 +00:00
parent f7f65c0ed2
commit 80c4433c18

View File

@ -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