]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-23395: Fix PyErr_SetInterrupt if the SIGINT signal is ignored or not handled...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 24 May 2019 09:22:38 +0000 (02:22 -0700)
committerGitHub <noreply@github.com>
Fri, 24 May 2019 09:22:38 +0000 (02:22 -0700)
commit310f414bbd4d6ed1d8813f724c91ce9b4129c0ba
treebca2f14b6b451d2300e1a5b5e87785eb83f8cbcc
parenta3488e5902f5c26e5cc289aec2518e7b5058e5d1
bpo-23395: Fix PyErr_SetInterrupt if the SIGINT signal is ignored or not handled (GH-7778)

``_thread.interrupt_main()`` now avoids setting the Python error status if the ``SIGINT`` signal is ignored or not handled by Python.
(cherry picked from commit 608876b6b1eb59538e6c29671a733033fb8b5be7)

Co-authored-by: Matěj Cepl <mcepl@cepl.eu>
Doc/c-api/exceptions.rst
Doc/library/_thread.rst
Lib/test/test_threading.py
Misc/ACKS
Misc/NEWS.d/next/Library/2016-07-27-11-06-43.bpo-23395.MuCEX9.rst [new file with mode: 0644]
Modules/signalmodule.c