summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2003-05-02 11:39:00 +0000
committerDavid Xu <davidxu@FreeBSD.org>2003-05-02 11:39:00 +0000
commit99c883294c3de3f5a8385a30d18a2f20e1efa36e (patch)
tree62de60aa24402508b478dc59350575ad9ed2e05b /lib/libpthread/thread
parent6203d02c6aa48cb975c061343d9e80e7f8b04b73 (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread')
-rw-r--r--lib/libpthread/thread/thr_cond.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_cond.c b/lib/libpthread/thread/thr_cond.c
index 32a152ddef15..12c14db88862 100644
--- a/lib/libpthread/thread/thr_cond.c
+++ b/lib/libpthread/thread/thr_cond.c
@@ -326,7 +326,7 @@ _pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex)
* that the mutex be reaquired prior to
* cancellation.
*/
- if (done != 0) {
+ if (done || interrupted) {
rval = _mutex_cv_lock(mutex);
unlock_mutex = 1;
}