Skip to content

Commit

Permalink
std::net: Solaris supports SOCK_CLOEXEC as well since 11.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen authored and gitbot committed Feb 20, 2025
1 parent bf95fb3 commit 44673db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 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 44673db

Please sign in to comment.