From ca0fc8dc08384d8f63c564620ba7c12415a0a724 Mon Sep 17 00:00:00 2001 From: Pyry Kontio Date: Fri, 28 Apr 2017 14:03:06 +0900 Subject: [PATCH] exec (replace the current process) external subommands instead of running them as child processes. --- src/bin/cargo.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/cargo.rs b/src/bin/cargo.rs index 187db436fcb..1b8c7a9c3d1 100644 --- a/src/bin/cargo.rs +++ b/src/bin/cargo.rs @@ -325,7 +325,7 @@ fn execute_external_subcommand(config: &Config, cmd: &str, args: &[String]) -> C let err = match util::process(&command) .env(cargo::CARGO_ENV, cargo_exe) .args(&args[1..]) - .exec() { + .exec_replace() { Ok(()) => return Ok(()), Err(e) => e, };