Skip to content

Commit

Permalink
exec (replace the current process) external subommands instead of run…
Browse files Browse the repository at this point in the history
…ning them as child processes.
  • Loading branch information
golddranks committed Apr 28, 2017
1 parent 67cb898 commit ca0fc8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/cargo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit ca0fc8d

Please # to comment.