Skip to content

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

Merged
sunfishcode merged 1 commit into
bytecodealliance:mainfrom
taiki-e:nosigpipe
Oct 8, 2023
Merged

Provide {get,set}_socket_nosigpipe on NetBSD and DragonFly BSD#870
sunfishcode merged 1 commit into
bytecodealliance:mainfrom
taiki-e:nosigpipe

Conversation

@taiki-e

Copy link
Copy Markdown
Contributor

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-etaiki-e changed the title Provide {get,set}_socket_nosigpipe on NetBSD and DragonFlyBSDProvide {get,set}_socket_nosigpipe on NetBSD and DragonFly BSDOct 8, 2023
@sunfishcode

Copy link
Copy Markdown
Member

Looks good!

@sunfishcode
sunfishcode merged commit 0c22704 into bytecodealliance:mainOct 8, 2023
@taiki-e
taiki-e deleted the nosigpipe branch October 8, 2023 16:42
@sunfishcode

Copy link
Copy Markdown
Member

This is now released in rustix 0.38.18.

Sign up for freeto 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

@taiki-e@sunfishcode