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.
2 parents 9d7f90f + b5cbdcc commit 6cf4d5bCopy full SHA for 6cf4d5b
src/sync/sys/unix/net.rs
@@ -65,7 +65,7 @@ impl PipeListener {
65
}
66
67
fn new_monitor_fd() -> Result<(i32, i32)> {
68
- #[cfg(target_os = "linux")]
+ #[cfg(any(target_os = "linux", target_os = "android"))]
69
let fds = pipe2(nix::fcntl::OFlag::O_CLOEXEC)?;
70
71
@@ -131,7 +131,7 @@ impl PipeListener {
131
return Err(io::Error::new(io::ErrorKind::Other, "listener shutdown for quit flag"));
132
133
134
135
let fd = match accept4(self.fd, SockFlag::SOCK_CLOEXEC) {
136
Ok(fd) => fd,
137
Err(e) => {
0 commit comments