Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle RwLock reader count overflow #35378

Merged
merged 1 commit into from
Aug 7, 2016
Merged

Conversation

Amanieu
Copy link
Member

@Amanieu Amanieu commented Aug 5, 2016

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

@rust-highfive
Copy link
Collaborator

r? @brson

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member

@bors: r+ dff62c1

@bors
Copy link
Contributor

bors commented Aug 7, 2016

⌛ Testing commit dff62c1 with merge 877dfeb...

bors added a commit that referenced this pull request Aug 7, 2016
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.
@bors bors merged commit dff62c1 into rust-lang:master Aug 7, 2016
@brson brson added the relnotes Marks issues that should be documented in the release notes of the next release. label Aug 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
relnotes Marks issues that should be documented in the release notes of the next release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants