mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-22 05:28:42 +00:00
Fix install_from_source
: Set cmd
to be kill_on_drop (#479)
If user interrupts `cargo-binstall` by signal while it is running `cargo-install`, then the `cargo-install` would continue to run at background even after `cargo-binstall` terminates. Setting `cmd` to be kill_on_drop fixed this. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
035e600a56
commit
fdc617d870
1 changed files with 2 additions and 1 deletions
|
@ -121,7 +121,8 @@ async fn install_from_source(
|
|||
.arg("--version")
|
||||
.arg(version)
|
||||
.arg("--target")
|
||||
.arg(target);
|
||||
.arg(target)
|
||||
.kill_on_drop(true);
|
||||
|
||||
if quiet {
|
||||
cmd.arg("--quiet");
|
||||
|
|
Loading…
Add table
Reference in a new issue