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

Use immutable receivers for FdSet::{highest, contains, fds} #1464

Merged
merged 1 commit into from
Jul 13, 2021

Conversation

asomers
Copy link
Member

@asomers asomers commented Jul 13, 2021

There was never any good reason to use mutable receives in the first
place. Nix originally did so because libc defined FD_ISSET as taking a
mutable receiver, which it did based on an inaccurate Linux man page.
But that's fixed now.

rust-lang/libc#1725

There was never any good reason to use mutable receives in the first
place.  Nix originally did so because libc defined FD_ISSET as taking a
mutable receiver, which it did based on an inaccurate Linux man page.
But that's fixed now.

rust-lang/libc#1725
@asomers
Copy link
Member Author

asomers commented Jul 13, 2021

CC @zombiezen

@asomers asomers merged commit eac4b65 into nix-rust:master Jul 13, 2021
@asomers asomers deleted the fdset branch July 13, 2021 17:37
asomers added a commit to asomers/nix that referenced this pull request Jul 14, 2021
bors bot added a commit that referenced this pull request Jul 15, 2021
1467: Add more errno definitions for better backwards compat with 0.21.0 r=asomers a=asomers

Fixes #1464

Co-authored-by: Alan Somers <asomers@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant