We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41a5b84 commit 796cf42Copy full SHA for 796cf42
Modules/main.c
@@ -649,7 +649,7 @@ exit_sigint(void)
649
* SIG_DFL handler for SIGINT if KeyboardInterrupt went unhandled.
650
* If we don't, a calling process such as a shell may not know
651
* about the user's ^C. https://www.cons.org/cracauer/sigint.html */
652
-#if defined(HAVE_GETPID) && !defined(MS_WINDOWS)
+#if defined(HAVE_GETPID) && defined(HAVE_KILL) && !defined(MS_WINDOWS)
653
if (PyOS_setsig(SIGINT, SIG_DFL) == SIG_ERR) {
654
perror("signal"); /* Impossible in normal environments. */
655
} else {
0 commit comments