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 committed Sep 14, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent e7386b3 commit 22dac23
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
@@ -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

0 comments on commit 22dac23

Please sign in to comment.