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:
Corinna Vinschen 2017-08-03 23:09:57 +02:00
parent 8128f5482f
commit f378384804
1 changed files with 1 additions and 1 deletions

View File

@ -1426,7 +1426,7 @@ pthread_rwlock::rdlock (PLARGE_INTEGER timeout)
if (reader->n < UINT32_MAX)
++reader->n;
else
errno = EAGAIN;
result = EAGAIN;
goto DONE;
}