[3.7] bpo-23395: Fix PyErr_SetInterrupt if the SIGINT signal is ignored or not handled (GH-7778) by miss-islington · Pull Request #13541 · python/cpython

@mcepl @miss-islington

…not handled (pythonGH-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 608876b)

Co-authored-by: Matěj Cepl <mcepl@cepl.eu>