cygwin: pthread_rwlock_rdlock: don't set errno, just return error code
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
8128f5482f
commit
f378384804
|
@ -1426,7 +1426,7 @@ pthread_rwlock::rdlock (PLARGE_INTEGER timeout)
|
|||
if (reader->n < UINT32_MAX)
|
||||
++reader->n;
|
||||
else
|
||||
errno = EAGAIN;
|
||||
result = EAGAIN;
|
||||
goto DONE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue