diff options
author | Christian Heimes <christian@python.org> | 2022-07-23 10:29:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-23 10:29:00 (GMT) |
commit | d291a82df33cd8c917a374fef2a2373beda78b77 (patch) | |
tree | 8f658f9c9e9075fe95ed7b4eeb3c65076ce5a8a8 /Modules | |
parent | 68393248947adaa61962cd44e9d49c44017ba94f (diff) | |
download | cpython-d291a82df33cd8c917a374fef2a2373beda78b77.zip cpython-d291a82df33cd8c917a374fef2a2373beda78b77.tar.gz cpython-d291a82df33cd8c917a374fef2a2373beda78b77.tar.bz2 |
gh-90473: Check for HAVE_KILL in main.c:exit_sigint (GH-95165)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/main.c b/Modules/main.c index 90f2372..aa523fc 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -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 { |