From: Pyry Kontio Date: Fri, 28 Apr 2017 05:03:06 +0000 (+0900) Subject: exec (replace the current process) external subommands instead of running them as... X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~9^2~59^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ca0fc8dc08384d8f63c564620ba7c12415a0a724;p=cargo.git exec (replace the current process) external subommands instead of running them as child processes. --- diff --git a/src/bin/cargo.rs b/src/bin/cargo.rs index 187db436f..1b8c7a9c3 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, };