diff options
author | davidxu <davidxu@FreeBSD.org> | 2010-08-20 23:51:34 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2010-08-20 23:51:34 +0000 |
commit | 84d25462c95b8281bd9a3f7b4171c8537fc9449f (patch) | |
tree | d7ccd394dbed463165ede38ab28878dc7a0e9df2 | |
parent | d4890c88b0febe402398e0a0bb66efdc998dd9c9 (diff) | |
download | FreeBSD-src-84d25462c95b8281bd9a3f7b4171c8537fc9449f.zip FreeBSD-src-84d25462c95b8281bd9a3f7b4171c8537fc9449f.tar.gz |
make sure thread lock is locked.
-rw-r--r-- | sys/kern/subr_sleepqueue.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/subr_sleepqueue.c b/sys/kern/subr_sleepqueue.c index 0d2c65e..cc20799 100644 --- a/sys/kern/subr_sleepqueue.c +++ b/sys/kern/subr_sleepqueue.c @@ -411,6 +411,7 @@ sleepq_catch_signals(void *wchan, int pri) if ((td->td_pflags & TDP_WAKEUP) != 0) { td->td_pflags &= ~TDP_WAKEUP; ret = EINTR; + thread_lock(td); goto out; } |