diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-04-08 10:48:15 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-04-08 10:48:15 (GMT) |
commit | cfa7123ef108452dd402e3cdcec772be28872e2f (patch) | |
tree | 679f3380a96b416bb75a8e40e1488a016a7a2045 /Doc | |
parent | 7ede59d77a9b21c5c021d1b9a4289aba11509fdd (diff) | |
download | cpython-cfa7123ef108452dd402e3cdcec772be28872e2f.zip cpython-cfa7123ef108452dd402e3cdcec772be28872e2f.tar.gz cpython-cfa7123ef108452dd402e3cdcec772be28872e2f.tar.bz2 |
faulthandler: fix unregister() if it is called before register()
Fix a crash: don't read from NULL.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/faulthandler.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/faulthandler.rst b/Doc/library/faulthandler.rst index 106da45..c0b6625 100644 --- a/Doc/library/faulthandler.rst +++ b/Doc/library/faulthandler.rst @@ -97,7 +97,8 @@ Dump the traceback on a user signal .. function:: unregister(signum) Unregister a user signal: uninstall the handler of the *signum* signal - installed by :func:`register`. + installed by :func:`register`. Return ``True`` if the signal was registered, + ``False`` otherwise. Not available on Windows. |