8000
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.
1 parent 0d688bd commit f15be2fCopy full SHA for f15be2f
Modules/main.c
@@ -640,7 +640,7 @@ exit_sigint(void)
640
* SIG_DFL handler for SIGINT if KeyboardInterrupt went unhandled.
641
* If we don't, a calling process such as a shell may not know
642
* about the user's ^C. https://www.cons.org/cracauer/sigint.html */
643
-#if defined(HAVE_GETPID) && !defined(MS_WINDOWS)
+#if defined(HAVE_GETPID) && defined(HAVE_KILL) && !defined(MS_WINDOWS)
644
if (PyOS_setsig(SIGINT, SIG_DFL) == SIG_ERR) {
645
perror("signal"); /* Impossible in normal environments. */
646
} else {
0 commit comments