We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7659331 + 16579ae commit fc9e531Copy full SHA for fc9e531
vm/src/vm/mod.rs
@@ -757,6 +757,19 @@ impl VirtualMachine {
757
writeln!(stderr, "{msg}");
758
}
759
1
760
+ } else if exc.fast_isinstance(self.ctx.exceptions.keyboard_interrupt) {
761
+ #[allow(clippy::if_same_then_else)]
762
+ {
763
+ self.print_exception(exc);
764
+ #[cfg(unix)]
765
766
+ (libc::SIGINT as u8) + 128u8
767
+ }
768
+ #[cfg(not(unix))]
769
770
+ 1
771
772
773
} else {
774
self.print_exception(exc);
775
0 commit comments