-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Fix file descriptor ranges for fuchsia #81226
Conversation
Fuchsia does not restrict the range of valid values for a file descriptor, so the previous change that marked -1 as an invalid file descriptor does not apply to fuchsia.
r? @cramertj (rust-highfive has picked a reviewer for you, use r? to override) |
CC @tmandry |
cc #74699 which introduced the niche at -1 I'll add that we'd like to support this and remove the special case if possible, but we have unit tests that fail the assertion currently. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good after nit, above.
Why is Fuchsia being treated as different from other POSIX-like operating systems in this regard? File descriptors work the same way on Fuchsia as they do on other POSIX-like operating systems. |
Shouldn't we fix those unit tests rather than change rust-lang to be incorrect? |
Closing since this was not needed. The fix was done on the fuchsia side at https://fuchsia-review.googlesource.com/c/fuchsia/+/473984. |
Fuchsia does not restrict the range of valid values for a file descriptor, so the previous change that marked -1 as an invalid file descriptor does not apply to fuchsia.