aboutsummaryrefslogtreecommitdiff
path: root/src/sys/unix/uds/listener.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/unix/uds/listener.rs')
-rw-r--r--src/sys/unix/uds/listener.rs13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/sys/unix/uds/listener.rs b/src/sys/unix/uds/listener.rs
index 547ff57..79bd14e 100644
--- a/src/sys/unix/uds/listener.rs
+++ b/src/sys/unix/uds/listener.rs
@@ -42,7 +42,7 @@ pub(crate) fn accept(listener: &net::UnixListener) -> io::Result<(UnixStream, So
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
- target_os = "solaris",
+ target_os = "redox",
// Android x86's seccomp profile forbids calls to `accept4(2)`
// See https://github.com/tokio-rs/mio/issues/1445 for details
all(
@@ -65,11 +65,8 @@ pub(crate) fn accept(listener: &net::UnixListener) -> io::Result<(UnixStream, So
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
- target_os = "solaris",
- all(
- target_arch = "x86",
- target_os = "android"
- )
+ target_os = "redox",
+ all(target_arch = "x86", target_os = "android")
))]
let socket = syscall!(accept(
listener.as_raw_fd(),
@@ -83,9 +80,9 @@ pub(crate) fn accept(listener: &net::UnixListener) -> io::Result<(UnixStream, So
syscall!(fcntl(socket, libc::F_SETFD, libc::FD_CLOEXEC))?;
// See https://github.com/tokio-rs/mio/issues/1450
- #[cfg(all(target_arch = "x86",target_os = "android"))]
+ #[cfg(all(target_arch = "x86", target_os = "android"))]
syscall!(fcntl(socket, libc::F_SETFL, libc::O_NONBLOCK))?;
-
+
Ok(s)
});