We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c02363 commit dff62c1Copy full SHA for dff62c1
src/libstd/sys/unix/rwlock.rs
@@ -50,7 +50,9 @@ impl RWLock {
50
// the implementation allows recursive locking. The POSIX standard
51
// doesn't require recursivly locking a rwlock to deadlock, but we can't
52
// allow that because it could lead to aliasing issues.
53
- if r == libc::EDEADLK || *self.write_locked.get() {
+ if r == libc::EAGAIN {
54
+ panic!("rwlock maximum reader count exceeded");
55
+ } else if r == libc::EDEADLK || *self.write_locked.get() {
56
if r == 0 {
57
self.raw_unlock();
58
}
0 commit comments