limit scope of raw mode on stdout to allow interrupts to work

This commit is contained in:
Mark Thom
2019-09-30 14:09:02 -06:00
parent b26c5c213e
commit 1ec831b2e2
2 changed files with 17 additions and 18 deletions

View File

@@ -3180,6 +3180,7 @@ impl MachineState {
let interrupted = INTERRUPT.load(std::sync::atomic::Ordering::Relaxed);
if INTERRUPT.compare_and_swap(interrupted, false, std::sync::atomic::Ordering::Relaxed) {
self.reset();
self.fail = true;
return;
}