SIGN IN SIGN UP

Fix compatibility when SIGINT handler is installed by non-Python

When a native (Rust, C) program installs SIGINT handler and calls into Python,
`signal.getsignal` can return `None`, which is not a valid value for the 2nd
parameter of `signal.signal`. Fix it by checking `None` explicitly.
J
Jun Wu committed
85079ad4d726e64089d9e0efa9faa36a084b7d67
Parent: 2c84307
Committed by Jonathan Slenders <jonathan@slenders.be> on 5/15/2024, 10:19:44 AM