diff options
author | Brian Curtin <brian.curtin@gmail.com> | 2010-08-06 19:27:32 (GMT) |
---|---|---|
committer | Brian Curtin <brian.curtin@gmail.com> | 2010-08-06 19:27:32 (GMT) |
commit | ef9efbd69cfe39f8c6034910f551451e5d1e182a (patch) | |
tree | 35d402290a43a2962144b403392fa46b674b92f4 /Doc | |
parent | e6fc7401a92c7b51a80782d8095819b9909a0322 (diff) | |
download | cpython-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.rst | 4 |
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: |