diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-03-08 12:19:30 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-03-08 12:19:30 -0500 |
commit | e5dd18319bbd47c89aac5e1571771958a43e067d (patch) | |
tree | 71b928d817e04422b7b72c7a6d604fbb0a9e05b3 /src/thread/pthread_rwlock_tryrdlock.c | |
parent | 7e6be42a77989c01155bdc7333ea58206e1563d4 (diff) | |
download | musl-e5dd18319bbd47c89aac5e1571771958a43e067d.tar.gz musl-e5dd18319bbd47c89aac5e1571771958a43e067d.tar.bz2 musl-e5dd18319bbd47c89aac5e1571771958a43e067d.tar.xz musl-e5dd18319bbd47c89aac5e1571771958a43e067d.zip |
rwlock trylock functions were wrongly returning EAGAIN instead of EBUSY
Diffstat (limited to 'src/thread/pthread_rwlock_tryrdlock.c')
-rw-r--r-- | src/thread/pthread_rwlock_tryrdlock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/pthread_rwlock_tryrdlock.c b/src/thread/pthread_rwlock_tryrdlock.c index fc1d5328..f860ec71 100644 --- a/src/thread/pthread_rwlock_tryrdlock.c +++ b/src/thread/pthread_rwlock_tryrdlock.c @@ -7,7 +7,7 @@ int pthread_rwlock_tryrdlock(pthread_rwlock_t *rw) a_dec(&rw->_rw_readers); if (rw->_rw_waiters && !rw->_rw_readers) __wake(&rw->_rw_readers, 1, 0); - return EAGAIN; + return EBUSY; } return 0; } |