Closed quark-zju closed 1 month ago
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.
signal.getsignal
None
signal.signal
Thanks!
When a native (Rust, C) program installs SIGINT handler and calls into Python,
signal.getsignal
can returnNone
, which is not a valid value for the 2nd parameter ofsignal.signal
. Fix it by checkingNone
explicitly.