summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-08-06 19:27:32 (GMT)
committerBrian Curtin <brian.curtin@gmail.com>2010-08-06 19:27:32 (GMT)
commitef9efbd69cfe39f8c6034910f551451e5d1e182a (patch)
tree35d402290a43a2962144b403392fa46b674b92f4 /Doc
parente6fc7401a92c7b51a80782d8095819b9909a0322 (diff)
downloadcpython-ef9efbd69cfe39f8c6034910f551451e5d1e182a.zip
cpython-ef9efbd69cfe39f8c6034910f551451e5d1e182a.tar.gz
cpython-ef9efbd69cfe39f8c6034910f551451e5d1e182a.tar.bz2
Fix #9324: Add parameter validation to signal.signal on Windows in order
to prevent crashes.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/signal.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/signal.rst b/Doc/library/signal.rst
index a3d562b..7d8d7d6 100644
--- a/Doc/library/signal.rst
+++ b/Doc/library/signal.rst
@@ -230,6 +230,10 @@ The :mod:`signal` module defines the following functions:
see the :ref:`description in the type hierarchy <frame-objects>` or see the
attribute descriptions in the :mod:`inspect` module).
+ On Windows, :func:`signal` can only be called with :const:`SIGABRT`,
+ :const:`SIGFPE`, :const:`SIGILL`, :const:`SIGINT`, :const:`SIGSEGV`, or
+ :const:`SIGTERM`. A :exc:`ValueError` will be raised in any other case.
+
.. _signal-example: