handle SIGQUIT (#5744)

* handle sigquit

* fix clippy
This commit is contained in:
WindSoilder
2022-06-09 20:08:15 +08:00
committed by GitHub
parent 5bae7e56ef
commit 2e0b964d5b
5 changed files with 35 additions and 1 deletions

View File

@ -113,6 +113,10 @@ pub fn evaluate_repl(
if let Some(ctrlc) = &mut engine_state.ctrlc {
ctrlc.store(false, Ordering::SeqCst);
}
// Reset the SIGQUIT handler
if let Some(sig_quit) = engine_state.get_sig_quit() {
sig_quit.store(false, Ordering::SeqCst);
}
config = engine_state.get_config();