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
This commit is contained in:
Stuart Cook
2024-12-15 20:01:36 +11:00
committed by GitHub
+1
View File
@@ -81,6 +81,7 @@ pub fn new_raw(fam: c_int, ty: c_int) -> io::Result<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