Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit16579ae

Browse files
committed
Correct exitcode of KeyboardInterrupt
1 parentb6c9882 commit16579ae

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

‎vm/src/vm/mod.rs‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,19 @@ impl VirtualMachine {
757757
writeln!(stderr,"{msg}");
758758
}
759759
1
760+
}elseif 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::SIGINTasu8) +128u8
767+
}
768+
#[cfg(not(unix))]
769+
{
770+
1
771+
}
772+
}
760773
}else{
761774
self.print_exception(exc);
762775
1

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp