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

illumos/solaris should use SOCK_CLOEXEC|SOCK_NONBLOCK #26

Closed
wants to merge 1 commit into from

Conversation

papertigers
Copy link

Found this was broken on illumos while working on a tokio issue.
Calling the following on illumos will result in EINVAL -- try!(cvt(libc::ioctl(fd.fd, libc::FIOCLEX)));

We support SOCK_CLOEXEC and SOCK_NONBLOCK, although it looks like those currently are not in the libc crate, so I will open a PR there as well to get those added.

That means we can merge this or wait for the libc changes to get merged and bump the libc dependency in this crate. Either works for me.

@papertigers
Copy link
Author

libc PR: rust-lang/libc/pull/1594

@alexcrichton
Copy link
Contributor

Thanks for the PR, but unfortunately I don't have the time to maintain this crate any more. If there's a willing contributor I can transfer ownership!

@papertigers
Copy link
Author

Looks like there is an offer to maintain this crate in #25

@khalfella
Copy link

I hit this issue today and the patch from @papertigers fixed it. It would be great if this gets integrated.

@pfmooney
Copy link
Member

pfmooney commented May 1, 2020

Fixed in master

@pfmooney pfmooney closed this May 1, 2020
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.

None yet

4 participants