mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Fix #9324: Add parameter validation to signal.signal on Windows in order
to prevent crashes.
This commit is contained in:
parent
e6fc7401a9
commit
ef9efbd69c
4 changed files with 50 additions and 5 deletions
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue