Skip to content

Commit

Permalink
bpo-45643: Add signal.SIGSTKFLT on platforms where this is defined (G…
Browse files Browse the repository at this point in the history
  • Loading branch information
gareth-rees committed Dec 13, 2021
1 parent 191c431 commit a62be77
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Doc/library/signal.rst
Expand Up @@ -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.
Expand Down
@@ -0,0 +1 @@
Added :data:`signal.SIGSTKFLT` on platforms where this signal is defined.
3 changes: 3 additions & 0 deletions Modules/signalmodule.c
Expand Up @@ -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
Expand Down

0 comments on commit a62be77

Please sign in to comment.