Skip to content

Commit

Permalink
Always exit with 1 on SIGINT/SIGTERM/SIGHUP
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jul 15, 2024
1 parent 192d43e commit 5d7ace7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/restore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ impl Manager {
let cloned = this.clone();
ctrlc::set_handler(move || {
cloned.restore_all();
if term::error() {
std::process::exit(1)
}
std::process::exit(0)
std::process::exit(1)
})
.unwrap();

Expand Down

0 comments on commit 5d7ace7

Please sign in to comment.