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

Provide {get,set}_socket_nosigpipe on NetBSD and DragonFly BSD #870

Merged
merged 1 commit into from
Oct 8, 2023

Conversation

taiki-e
Copy link
Contributor

@taiki-e taiki-e commented Oct 8, 2023

libc 0.2.149 doesn't provide SO_NOSIGPIPE in NetBSD, so I opened rust-lang/libc#3377 and added our own constant in src/backend/libc/c.rs for now.

(BTW, AFAIK, OpenBSD doesn't have SO_NOSIGPIPE: https://github.com/search?q=repo%3Aopenbsd%2Fsrc%20%2FSO_NOSIGPIPE%2F&type=code)

@taiki-e taiki-e changed the title Provide {get,set}_socket_nosigpipe on NetBSD and DragonFlyBSD Provide {get,set}_socket_nosigpipe on NetBSD and DragonFly BSD Oct 8, 2023
@sunfishcode
Copy link
Member

Looks good!

@sunfishcode sunfishcode merged commit 0c22704 into bytecodealliance:main Oct 8, 2023
43 checks passed
@taiki-e taiki-e deleted the nosigpipe branch October 8, 2023 16:42
@sunfishcode
Copy link
Member

This is now released in rustix 0.38.18.

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.

2 participants