summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_mutex.c
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>2000-03-15 13:59:27 +0000
committerDaniel Eischen <deischen@FreeBSD.org>2000-03-15 13:59:27 +0000
commit1d013a86edb866de00bf57761c845388c8d9a467 (patch)
tree935feb03e56c674b055ccf5f23861c18e476211a /lib/libpthread/thread/thr_mutex.c
parent8d548e1f88b83ea07e628bc6ddb7144ee8379bcd (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_mutex.c')
-rw-r--r--lib/libpthread/thread/thr_mutex.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_mutex.c b/lib/libpthread/thread/thr_mutex.c
index 6d75ea52752e..c97c86b0bb45 100644
--- a/lib/libpthread/thread/thr_mutex.c
+++ b/lib/libpthread/thread/thr_mutex.c
@@ -610,8 +610,10 @@ pthread_mutex_lock(pthread_mutex_t * mutex)
* Check to see if this thread was interrupted and
* is still in the mutex queue of waiting threads:
*/
- if (_thread_run->interrupted != 0)
+ if (_thread_run->interrupted != 0) {
mutex_queue_remove(*mutex, _thread_run);
+ ret = EINTR;
+ }
/* Unlock the mutex structure: */
_SPINUNLOCK(&(*mutex)->lock);