Skip to content
Snippets Groups Projects
Unverified Commit f15be2fa authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub
Browse files

gh-90473: Check for HAVE_KILL in main.c:exit_sigint (GH-95165)


(cherry picked from commit d291a82d)

Co-authored-by: default avatarChristian Heimes <christian@python.org>
parent 0d688bd2
No related branches found
No related tags found
No related merge requests found
......@@ -640,7 +640,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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment