diff options
author | jhb <jhb@FreeBSD.org> | 2004-05-20 20:17:28 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2004-05-20 20:17:28 +0000 |
commit | 91621895aae4c3bb49cd8014bca7e86a25ce4e5a (patch) | |
tree | e426e741f0999838b43cb55f92e758a3791d4bb7 | |
parent | ccdf5be9cee57e90f450a0321adac161fc97f195 (diff) | |
download | FreeBSD-src-91621895aae4c3bb49cd8014bca7e86a25ce4e5a.zip FreeBSD-src-91621895aae4c3bb49cd8014bca7e86a25ce4e5a.tar.gz |
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
-rw-r--r-- | sys/kern/kern_sig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 71536a2..91c69be 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -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 |