mirror of
https://github.com/rust-lang/cargo
synced 2024-10-14 19:52:45 +00:00
Auto merge of #3970 - golddranks:master, r=alexcrichton
exec (replace the current process) external subcommands instead of running them as child processes. This fixes https://github.com/rust-lang/cargo/issues/3959 (tested to be working with my yet-to-be-published subcommand, and tested not to break things with `cargo tree` and `cargo outdated`).
This commit is contained in:
commit
bb970dc0da
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue