(Merge 3.3) Issue #18343: faulthandler.register() now keeps the previous signal
handler when the function is called twice, so faulthandler.unregister() restores correctly the original signal handler.
This commit is contained in:
commit
0857ab4c77
@ -138,6 +138,10 @@ Core and Builtins
|
|||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #18343: faulthandler.register() now keeps the previous signal handler
|
||||||
|
when the function is called twice, so faulthandler.unregister() restores
|
||||||
|
correctly the original signal handler.
|
||||||
|
|
||||||
- Issue #17097: Make multiprocessing ignore EINTR.
|
- Issue #17097: Make multiprocessing ignore EINTR.
|
||||||
|
|
||||||
- Issue #18339: Negative ints keys in unpickler.memo dict no longer cause a
|
- Issue #18339: Negative ints keys in unpickler.memo dict no longer cause a
|
||||||
|
@ -741,6 +741,8 @@ faulthandler_register_py(PyObject *self,
|
|||||||
PyErr_SetFromErrno(PyExc_OSError);
|
PyErr_SetFromErrno(PyExc_OSError);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
user->previous = previous;
|
||||||
}
|
}
|
||||||
|
|
||||||
Py_XDECREF(user->file);
|
Py_XDECREF(user->file);
|
||||||
@ -749,7 +751,6 @@ faulthandler_register_py(PyObject *self,
|
|||||||
user->fd = fd;
|
user->fd = fd;
|
||||||
user->all_threads = all_threads;
|
user->all_threads = all_threads;
|
||||||
user->chain = chain;
|
user->chain = chain;
|
||||||
user->previous = previous;
|
|
||||||
user->interp = tstate->interp;
|
user->interp = tstate->interp;
|
||||||
user->enabled = 1;
|
user->enabled = 1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user