Skip to content

Commit 796cf42

Browse files
committed
pythongh-90473: Check for HAVE_KILL in main.c:exit_sigint
1 parent 41a5b84 commit 796cf42

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)