Skip to content

Commit

Permalink
Auto merge of #3970 - golddranks:master, r=alexcrichton
Browse files Browse the repository at this point in the history
exec (replace the current process) external subcommands instead of running them as child processes.

This fixes #3959 (tested to be working with my yet-to-be-published subcommand, and tested not to break things with `cargo tree` and `cargo outdated`).
  • Loading branch information
bors committed Apr 28, 2017
2 parents 04574f0 + ca0fc8d commit bb970dc
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 bb970dc

Please sign in to comment.