We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44b31f7 commit b5cbdccCopy full SHA for b5cbdcc
src/sync/sys/unix/net.rs
@@ -62,7 +62,7 @@ impl PipeListener {
62
}
63
64
fn new_monitor_fd() -> Result<(i32, i32)> {
65
- #[cfg(target_os = "linux")]
+ #[cfg(any(target_os = "linux", target_os = "android"))]
66
let fds = pipe2(nix::fcntl::OFlag::O_CLOEXEC)?;
67
68
@@ -128,7 +128,7 @@ impl PipeListener {
128
return Err(io::Error::new(io::ErrorKind::Other, "listener shutdown for quit flag"));
129
130
131
132
let fd = match accept4(self.fd, SockFlag::SOCK_CLOEXEC) {
133
Ok(fd) => fd,
134
Err(e) => {
0 commit comments