Fix compilation with process feature on other Unixes

This commit is contained in:
Jeremy Soller 2025-03-19 12:27:21 -06:00
parent b2b6d90fb6
commit e29ce0d4c1
No known key found for this signature in database
GPG key ID: 670FDFB5428E05CA

View file

@ -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;
};