summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-04-08 10:48:15 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-04-08 10:48:15 (GMT)
commitcfa7123ef108452dd402e3cdcec772be28872e2f (patch)
tree679f3380a96b416bb75a8e40e1488a016a7a2045 /Doc
parent7ede59d77a9b21c5c021d1b9a4289aba11509fdd (diff)
downloadcpython-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.rst3
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.