bpo-30654: Do not reset SIGINT handler to SIG_DFL in finisignal by yol · Pull Request #2162 · python/cpython (original) (raw)
Instead of saving old_siginthandler which will always be SIG_DFL, just use the normal reset code. This means that SIGINT will not be reset to SIG_DFL if it had a custom C handler during initialization, since func
will be Py_None
then.
I'm not sure if this is the intended behavior. But the prior behavior was broken, so it's an improvement.