summaryrefslogtreecommitdiff
path: root/lib/libthr/thread/thr_mutex.c
diff options
context:
space:
mode:
authorMike Makonnen <mtm@FreeBSD.org>2004-03-29 09:35:07 +0000
committerMike Makonnen <mtm@FreeBSD.org>2004-03-29 09:35:07 +0000
commit0c3a942692bfe7e5b0e62f4263f60a82d7a6c120 (patch)
tree3f3123f9c8648b0fe6ad20a0837c61ecb2b423de /lib/libthr/thread/thr_mutex.c
parentece20938e5c352444e7427c8bb6bc859da68ac0f (diff)
Notes
Diffstat (limited to 'lib/libthr/thread/thr_mutex.c')
-rw-r--r--lib/libthr/thread/thr_mutex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_mutex.c b/lib/libthr/thread/thr_mutex.c
index 75d7323117e1..94c6c257ad28 100644
--- a/lib/libthr/thread/thr_mutex.c
+++ b/lib/libthr/thread/thr_mutex.c
@@ -905,7 +905,7 @@ get_mcontested(pthread_mutex_t mutexp, const struct timespec *abstime)
PANIC("Cannot suspend on mutex.");
_SPINLOCK(&mutexp->lock);
_thread_critical_enter(curthread);
- if (error == EAGAIN) {
+ if (error == ETIMEDOUT) {
/*
* Between the timeout and when the mutex was
* locked the previous owner may have released