about summary refs log tree commit diff
diff options
context:
space:
mode:
authorStuart Cook <Zalathar@users.noreply.github.com>2024-12-15 20:01:36 +1100
committerGitHub <noreply@github.com>2024-12-15 20:01:36 +1100
commitacdcd3a895d5f7dc4b0bf6bfa10d4dfd8b98b439 (patch)
treecfa7ad1c7fe2fab0846cc5b00c939b5edadfb218
parent4790a435cbcb55c94ccdef51bf7a9b2e55824528 (diff)
parent22dac2339a6c151693b6e4e38b3a9b28a3f51921 (diff)
downloadrust-acdcd3a895d5f7dc4b0bf6bfa10d4dfd8b98b439.tar.gz
rust-acdcd3a895d5f7dc4b0bf6bfa10d4dfd8b98b439.zip
Rollup merge of #130361 - devnexen:sock_cloexec_solaris, r=cuviper
std::net: Solaris supports `SOCK_CLOEXEC` as well since 11.4.

try-job: dist-various-2
-rw-r--r--library/std/src/sys/pal/unix/net.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/sys/pal/unix/net.rs b/library/std/src/sys/pal/unix/net.rs
index d140607869c..d73b9fd5eb8 100644
--- a/library/std/src/sys/pal/unix/net.rs
+++ b/library/std/src/sys/pal/unix/net.rs
@@ -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