We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9525719 commit 431edf5Copy full SHA for 431edf5
cargo-miri/bin.rs
@@ -255,9 +255,8 @@ fn exec(mut cmd: Command) -> ! {
255
// On non-Unix imitate POSIX exec as closely as we can
256
#[cfg(not(unix))]
257
{
258
- exec(cmd);
259
- // Our imitation of exec only returns upon success
260
- std::process::exit(0)
+ let exit_status = cmd.status().expect("failed to run command");
+ std::process::exit(exit_status.code().unwrap_or(-1));
261
}
262
// On Unix targets, actually exec
263
// If exec returns, process setup has failed. This is the same error condition as the expect in
0 commit comments