summaryrefslogtreecommitdiff
path: root/Doc/library/signal.rst
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-08-06 19:27:32 +0000
committerBrian Curtin <brian.curtin@gmail.com>2010-08-06 19:27:32 +0000
commitb67ebbbd693a605f5744779b935e8dd99ac035d0 (patch)
treefa80d2a563de897ed4e9dee32b7e18fbd0109ddd /Doc/library/signal.rst
parent9fc886127c9332acc1b7b6595dd782969ec2d870 (diff)
downloadcpython-b67ebbbd693a605f5744779b935e8dd99ac035d0.tar.gz
Fix #9324: Add parameter validation to signal.signal on Windows in order
to prevent crashes.
Diffstat (limited to 'Doc/library/signal.rst')
-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 a3d562b4ff..7d8d7d6710 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: