-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
std::net: Socket::new_raw now set to SO_NOSIGPIPE on freebsd. #124470
Conversation
r? @ChrisDenton rustbot has assigned @ChrisDenton. Use |
library/std/src/sys/pal/unix/net.rs
Outdated
@@ -74,7 +74,6 @@ impl Socket { | |||
if #[cfg(any( | |||
target_os = "android", | |||
target_os = "dragonfly", | |||
target_os = "freebsd", |
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.
This makes an extra syscall in set_cloexec necessary, right?
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.
yes
Btw, NetBSD and DragonFly BSD also support nosigpipe: bytecodealliance/rustix#870 |
7a878ea
to
8131774
Compare
There are merge commits (commits with multiple parents) in your changes. We have a no merge policy so these commits will need to be removed for this pull request to be merged. You can start a rebase with the following commands:
The following commits are merge commits: |
766e489
to
a25b094
Compare
@devnexen Thanks for the PR! Pardon me, I seem to be a bit dense today. What does the part of the PR title that says "no set to" mean? |
Hehe just typo. meant "noW set to" |
And it seems this is already done, albeit with very slight API differences, by The Other BSD. Cool, safe to continue doing platform-specific stuff then. @bors r+ rollup |
r? workingjubilee |
@bors r+ rollup |
…gjubilee std::net: Socket::new_raw now set to SO_NOSIGPIPE on freebsd.
…gjubilee std::net: Socket::new_raw now set to SO_NOSIGPIPE on freebsd.
…kingjubilee Rollup of 4 pull requests Successful merges: - rust-lang#124470 (std::net: Socket::new_raw now set to SO_NOSIGPIPE on freebsd.) - rust-lang#124782 (add note about `AlreadyExists` to `create_new`) - rust-lang#124788 (Convert instances of `target_os = "macos"` to `target_vendor = "apple"`) - rust-lang#124838 (next_power_of_two: add a doctest to show what happens on 0) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#124470 - devnexen:no_sigpipe_fbsd, r=workingjubilee std::net: Socket::new_raw now set to SO_NOSIGPIPE on freebsd.
No description provided.