Skip to content

Commit

Permalink
pythongh-90473: Check for HAVE_KILL in main.c:exit_sigint
Browse files Browse the repository at this point in the history
  • Loading branch information
tiran committed Jul 23, 2022
1 parent 41a5b84 commit 796cf42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ exit_sigint(void)
* SIG_DFL handler for SIGINT if KeyboardInterrupt went unhandled.
* If we don't, a calling process such as a shell may not know
* about the user's ^C. https://www.cons.org/cracauer/sigint.html */
#if defined(HAVE_GETPID) && !defined(MS_WINDOWS)
#if defined(HAVE_GETPID) && defined(HAVE_KILL) && !defined(MS_WINDOWS)
if (PyOS_setsig(SIGINT, SIG_DFL) == SIG_ERR) {
perror("signal"); /* Impossible in normal environments. */
} else {
Expand Down

0 comments on commit 796cf42

Please sign in to comment.