Skip to content

Commit a62be77

Browse files
authored
bpo-45643: Add signal.SIGSTKFLT on platforms where this is defined (GH-29266)
1 parent 191c431 commit a62be77

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

Doc/library/signal.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,16 @@ The variables defined in the :mod:`signal` module are:
197197

198198
Segmentation fault: invalid memory reference.
199199

200+
.. data:: SIGSTKFLT
201+
202+
Stack fault on coprocessor. The Linux kernel does not raise this signal: it
203+
can only be raised in user space.
204+
205+
.. availability:: Linux, on architectures where the signal is available. See
206+
the man page :manpage:`signal(7)` for further information.
207+
208+
.. versionadded:: 3.11
209+
200210
.. data:: SIGTERM
201211

202212
Termination signal.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added :data:`signal.SIGSTKFLT` on platforms where this signal is defined.

Modules/signalmodule.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1554,6 +1554,9 @@ signal_add_constants(PyObject *module)
15541554
#ifdef SIGINFO
15551555
ADD_INT_MACRO(SIGINFO);
15561556
#endif
1557+
#ifdef SIGSTKFLT
1558+
ADD_INT_MACRO(SIGSTKFLT);
1559+
#endif
15571560

15581561
// ITIMER_xxx constants
15591562
#ifdef ITIMER_REAL

0 commit comments

Comments
 (0)