Skip to content

Commit d291a82

Browse files
authored
gh-90473: Check for HAVE_KILL in main.c:exit_sigint (GH-95165)
1 parent 6839324 commit d291a82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ exit_sigint(void)
649649
* SIG_DFL handler for SIGINT if KeyboardInterrupt went unhandled.
650650
* If we don't, a calling process such as a shell may not know
651651
* about the user's ^C. https://www.cons.org/cracauer/sigint.html */
652-
#if defined(HAVE_GETPID) && !defined(MS_WINDOWS)
652+
#if defined(HAVE_GETPID) && defined(HAVE_KILL) && !defined(MS_WINDOWS)
653653
if (PyOS_setsig(SIGINT, SIG_DFL) == SIG_ERR) {
654654
perror("signal"); /* Impossible in normal environments. */
655655
} else {

0 commit comments

Comments
 (0)