Thanks to visit codestin.com Credit goes to github.com
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 6839324 commit d291a82Copy full SHA for d291a82
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