Attempt to graceful shutdown in case of panics (#8999)
* Handle graceful shutdown with unwinding * Fix a race condition * Avoid double exit deadlock * typo: fix docs * Fix ethkey cli compilation * Fix all other cases panic_hook::set -> panic_hook::set_abort * struct fields do not need to be public * Add comments on why exiting AtomicBool is needed
This commit is contained in:
@@ -145,7 +145,7 @@ impl fmt::Display for Error {
|
||||
}
|
||||
|
||||
fn main() {
|
||||
panic_hook::set();
|
||||
panic_hook::set_abort();
|
||||
|
||||
match execute(env::args()) {
|
||||
Ok(result) => println!("{}", result),
|
||||
|
||||
Reference in New Issue
Block a user