summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_mutex.c
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2003-12-09 00:52:28 +0000
committerDavid Xu <davidxu@FreeBSD.org>2003-12-09 00:52:28 +0000
commitd5c854e8904326307d204ab210800f57e609e200 (patch)
treefad61db479c193db3b4ff289e1a2c1f92d41b6a6 /lib/libpthread/thread/thr_mutex.c
parent5091e3df704cd635653ea174ebb06a77792ea609 (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_mutex.c')
-rw-r--r--lib/libpthread/thread/thr_mutex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_mutex.c b/lib/libpthread/thread/thr_mutex.c
index 017baebfed9c..464bc39fe793 100644
--- a/lib/libpthread/thread/thr_mutex.c
+++ b/lib/libpthread/thread/thr_mutex.c
@@ -752,7 +752,7 @@ mutex_lock_common(struct pthread *curthread, pthread_mutex_t *m,
} while (((*m)->m_owner != curthread) && (ret == 0) &&
(curthread->interrupted == 0) && (curthread->timeout == 0));
- if (ret == 0 && curthread->timeout)
+ if (ret == 0 && (*m)->m_owner != curthread && curthread->timeout)
ret = ETIMEDOUT;
/*