Skip to content

Commit

Permalink
Fixed risc0-build deadlock / double build (risc0#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
mothran authored Apr 5, 2023
1 parent b54a0b3 commit 96deb85
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions risc0/build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,10 +409,9 @@ fn build_guest_package<P>(
}
}

let status = cmd.status().unwrap();

if !status.success() {
std::process::exit(status.code().unwrap());
let res = child.wait().expect("Guest 'cargo build' failed");
if !res.success() {
std::process::exit(res.code().unwrap());
}
}

Expand Down

0 comments on commit 96deb85

Please sign in to comment.