Skip to content

Commit

Permalink
Auto merge of rust-lang#130361 - devnexen:sock_cloexec_solaris, r=<try>
Browse files Browse the repository at this point in the history
std::net: Solaris supports `SOCK_CLOEXEC` as well since 11.4.

try-job: dist-various-2
  • Loading branch information
bors committed Nov 20, 2024
2 parents a1f2999 + 22dac23 commit 686f591
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/std/src/sys/pal/unix/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ impl Socket {
target_os = "netbsd",
target_os = "openbsd",
target_os = "nto",
target_os = "solaris",
))] {
// On platforms that support it we pass the SOCK_CLOEXEC
// flag to atomically create the socket and set it as
Expand Down

0 comments on commit 686f591

Please sign in to comment.