Commit 85079ad
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.1 parent 2c84307 commit 85079ad
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1621 | 1621 | | |
1622 | 1622 | | |
1623 | 1623 | | |
1624 | | - | |
| 1624 | + | |
| 1625 | + | |
1625 | 1626 | | |
0 commit comments