diff --git a/crates/tako/src/launcher.rs b/crates/tako/src/launcher.rs index 81cc2154b..6d7392302 100644 --- a/crates/tako/src/launcher.rs +++ b/crates/tako/src/launcher.rs @@ -168,6 +168,7 @@ pub fn command_from_definitions(definition: &ProgramDefinition) -> crate::Result let mut command = Command::new(definition.args[0].to_os_str_lossy()); + #[cfg(target_os = "linux")] unsafe { command.pre_exec(|| { // We need to create a new process group for the task, so that we can