Skip to content

Commit

Permalink
Rollup merge of #130361 - devnexen:sock_cloexec_solaris, r=cuviper
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
Zalathar authored Dec 15, 2024
2 parents 4790a43 + 22dac23 commit acdcd3a
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 acdcd3a

Please sign in to comment.