projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3d726a
)
(__pthread_mutex_unlock): Correct test for already unlocked mutex.
author
Ulrich Drepper
<drepper@redhat.com>
Tue, 5 Sep 2000 08:32:03 +0000
(08:32 +0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Tue, 5 Sep 2000 08:32:03 +0000
(08:32 +0000)
linuxthreads/mutex.c
patch
|
blob
|
history
diff --git
a/linuxthreads/mutex.c
b/linuxthreads/mutex.c
index ae070e5b93129385a9a8b9c6c41715722a95584a..9ce4a30820beb38cc7fbb532c9bc9016f73ffb02 100644
(file)
--- a/
linuxthreads/mutex.c
+++ b/
linuxthreads/mutex.c
@@
-171,7
+171,7
@@
int __pthread_mutex_unlock(pthread_mutex_t * mutex)
__pthread_unlock(&mutex->__m_lock);
return 0;
case PTHREAD_MUTEX_ERRORCHECK_NP:
- if (mutex->__m_owner != thread_self() ||
(mutex->__m_lock.__status & 1)
== 0)
+ if (mutex->__m_owner != thread_self() ||
mutex->__m_lock.__status
== 0)
return EPERM;
mutex->__m_owner = NULL;
__pthread_alt_unlock(&mutex->__m_lock);