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)
|
if (reader->n < UINT32_MAX)
|
||||||
++reader->n;
|
++reader->n;
|
||||||
else
|
else
|
||||||
errno = EAGAIN;
|
result = EAGAIN;
|
||||||
goto DONE;
|
goto DONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user