Skip to content

Commit

Permalink
Fix panic in ord env shutdown (#3787)
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptoni9n committed May 30, 2024
1 parent 412d37a commit 08e135b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/subcommand/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ struct KillOnDrop(process::Child);

impl Drop for KillOnDrop {
fn drop(&mut self) {
assert!(Command::new("kill")
.arg(self.0.id().to_string())
.status()
.unwrap()
.success());
self.0.wait().unwrap();
let _ = Command::new("kill").arg(self.0.id().to_string()).status();

let _ = self.0.kill();

let _ = self.0.wait();
}
}

Expand Down

0 comments on commit 08e135b

Please sign in to comment.