File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,6 +41,10 @@ Core and Builtins
4141Library
4242-------
4343
44+ - Issue #18343: faulthandler.register() now keeps the previous signal handler
45+ when the function is called twice, so faulthandler.unregister() restores
46+ correctly the original signal handler.
47+
4448- Issue #17097: Make multiprocessing ignore EINTR.
4549
4650- Issue #18339: Negative ints keys in unpickler.memo dict no longer cause a
Original file line number Diff line number Diff line change @@ -742,6 +742,8 @@ faulthandler_register_py(PyObject *self,
742742 PyErr_SetFromErrno (PyExc_OSError );
743743 return NULL ;
744744 }
745+
746+ user -> previous = previous ;
745747 }
746748
747749 Py_XDECREF (user -> file );
@@ -750,7 +752,6 @@ faulthandler_register_py(PyObject *self,
750752 user -> fd = fd ;
751753 user -> all_threads = all_threads ;
752754 user -> chain = chain ;
753- user -> previous = previous ;
754755 user -> interp = tstate -> interp ;
755756 user -> enabled = 1 ;
756757
You can’t perform that action at this time.
0 commit comments