Skip to content
This repository was archived by the owner on Sep 7, 2025. It is now read-only.

Commit bfde888

Browse files
committed
Disable Ctrl-C handling for shim
See #12 -- not going to call this fixed yet though
1 parent e64f719 commit bfde888

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,12 +726,15 @@ fn exec_shimmed_binary(program_name: &OsStr, args: Vec<OsString>) -> Result<(),
726726
CheckUnshimmedCommands::new(&quickenv_home).unwrap_or(CheckUnshimmedCommands::Disabled);
727727
let _ignored = unshimmed_commands.exclude_current();
728728

729-
let exitcode = process::Command::new(shimmed_binary_result.path)
729+
let mut child = process::Command::new(shimmed_binary_result.path)
730730
.args(args)
731731
.envs(shimmed_binary_result.envvars_override)
732-
.status()
732+
.spawn()
733733
.context("failed to spawn shim subcommand")?;
734734

735+
signals::pass_control_to_shim();
736+
let exitcode = child.wait().context("failed to wait for shim subcommand")?;
737+
735738
let _ignored = unshimmed_commands.check_unshimmed_commands(true);
736739

737740
if let Some(code) = exitcode.code() {

0 commit comments

Comments
 (0)