mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #12550: Add chain optional argument to faulthandler.register()
Call the previous signal handler if chain is True.
This commit is contained in:
parent
d93da2b952
commit
a9a9dab042
3 changed files with 90 additions and 37 deletions
|
@ -92,11 +92,11 @@ Dump the tracebacks after a timeout
|
|||
Dump the traceback on a user signal
|
||||
-----------------------------------
|
||||
|
||||
.. function:: register(signum, file=sys.stderr, all_threads=True)
|
||||
.. function:: register(signum, file=sys.stderr, all_threads=True, chain=False)
|
||||
|
||||
Register a user signal: install a handler for the *signum* signal to dump
|
||||
the traceback of all threads, or of the current thread if *all_threads* is
|
||||
``False``, into *file*.
|
||||
``False``, into *file*. Call the previous handler if chain is ``True``.
|
||||
|
||||
Not available on Windows.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue