Fix compilation with process feature on other Unixes
This commit is contained in:
parent
b2b6d90fb6
commit
e29ce0d4c1
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ pub async fn spawn(mut command: Command) -> Option<u32> {
|
|||
.stderr(Stdio::null());
|
||||
|
||||
// Handle Linux
|
||||
#[cfg(target_os = "linux")]
|
||||
#[cfg(all(unix, not(target_os = "macos")))]
|
||||
let Ok((read, write)) = rustix::pipe::pipe_with(rustix::pipe::PipeFlags::CLOEXEC) else {
|
||||
return None;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue