Skip to content

bpo-45643: Add signal.SIGSTKFLT on platforms where this is defined. #29266

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Doc/library/signal.rst
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added :data:`signal.SIGSTKFLT` on platforms where this signal is defined.
3 changes: 3 additions & 0 deletions Modules/signalmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -1547,6 +1547,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