From f878276de7383ff6845e1507369abcc1c4d023c1 Mon Sep 17 00:00:00 2001 From: JT <547158+jntrnr@users.noreply.github.com> Date: Thu, 10 Nov 2022 07:39:09 +1300 Subject: [PATCH] Turn off foreground processes on macOS (#7068) * Turn off foreground processes on macOS * fmt --- crates/nu-system/src/foreground.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/nu-system/src/foreground.rs b/crates/nu-system/src/foreground.rs index 9c9a704e01..51371a9389 100644 --- a/crates/nu-system/src/foreground.rs +++ b/crates/nu-system/src/foreground.rs @@ -79,7 +79,8 @@ impl Drop for ForegroundChild { } // It's a simpler version of fish shell's external process handling. -#[cfg(target_family = "unix")] +// Note: we exclude macos because the techniques below seem to have issues in macos 13 currently. +#[cfg(all(target_family = "unix", not(target_os = "macos")))] mod fg_process_setup { use nix::{ sys::signal, @@ -170,7 +171,7 @@ mod fg_process_setup { } } -#[cfg(not(target_family = "unix"))] +#[cfg(any(not(target_family = "unix"), target_os = "macos"))] mod fg_process_setup { pub(super) fn prepare_to_foreground(_: &mut std::process::Command, _: u32) {}