From: bors Date: Thu, 20 Oct 2016 17:58:29 +0000 (-0700) Subject: Auto merge of #2818 - robinst:use-exec-for-cargo-run, r=alexcrichton X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~13^2~33 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9a0801da0caa81653950baffabd8705d41d24d40;p=cargo.git Auto merge of #2818 - robinst:use-exec-for-cargo-run, r=alexcrichton Use CommandExt::exec for `cargo run` on Unix (#2343) Before, we would spawn a child process for the program. One of the problems with that is when killing the cargo process, the program continues running. With this change, the cargo process is replaced by the program, and killing it works. Before (`cargo run` is the parent): > 502 7615 7614 0 2:26PM ttys012 0:00.12 /Users/rstocker/.multirust/toolchains/stable-x86_64-apple-darwin/bin/cargo run > 502 7620 7615 0 2:26PM ttys012 0:00.01 target/debug/program After (the shell is the parent): > 502 81649 81648 0 5:27PM ttys012 0:00.69 -zsh > 502 7739 81649 0 2:26PM ttys012 0:01.27 target/debug/program --- 9a0801da0caa81653950baffabd8705d41d24d40