]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #35378 - Amanieu:rwlock_eagain, r=alexcrichton
authorbors <bors@rust-lang.org>
Sun, 7 Aug 2016 02:50:48 +0000 (19:50 -0700)
committerGitHub <noreply@github.com>
Sun, 7 Aug 2016 02:50:48 +0000 (19:50 -0700)
Handle RwLock reader count overflow

`pthread_rwlock_rdlock` may return `EAGAIN` if the maximum reader count overflows. We shouldn't return a successful lock in that case.


Trivial merge