bpo-45643: Add signal.SIGSTKFLT on platforms where this is defined (GH-29266)

This commit is contained in:
Gareth Rees 2021-12-13 17:22:43 +00:00 committed by GitHub
parent 191c431de7
commit a62be77266
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 0 deletions

View File

@ -197,6 +197,16 @@ The variables defined in the :mod:`signal` module are:
Segmentation fault: invalid memory reference.
.. data:: SIGSTKFLT
Stack fault on coprocessor. The Linux kernel does not raise this signal: it
can only be raised in user space.
.. availability:: Linux, on architectures where the signal is available. See
the man page :manpage:`signal(7)` for further information.
.. versionadded:: 3.11
.. data:: SIGTERM
Termination signal.

View File

@ -0,0 +1 @@
Added :data:`signal.SIGSTKFLT` on platforms where this signal is defined.

View File

@ -1554,6 +1554,9 @@ signal_add_constants(PyObject *module)
#ifdef SIGINFO
ADD_INT_MACRO(SIGINFO);
#endif
#ifdef SIGSTKFLT
ADD_INT_MACRO(SIGSTKFLT);
#endif
// ITIMER_xxx constants
#ifdef ITIMER_REAL