From a62be77266b1beadd42d4952186332bc0847b7d6 Mon Sep 17 00:00:00 2001 From: Gareth Rees Date: Mon, 13 Dec 2021 17:22:43 +0000 Subject: bpo-45643: Add signal.SIGSTKFLT on platforms where this is defined (GH-29266) --- Doc/library/signal.rst | 10 ++++++++++ .../next/Library/2021-10-28-11-40-59.bpo-45643.jeiPiX.rst | 1 + Modules/signalmodule.c | 3 +++ 3 files changed, 14 insertions(+) create mode 100644 Misc/NEWS.d/next/Library/2021-10-28-11-40-59.bpo-45643.jeiPiX.rst diff --git a/Doc/library/signal.rst b/Doc/library/signal.rst index 6382186..abc3036 100644 --- a/Doc/library/signal.rst +++ b/Doc/library/signal.rst @@ -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. diff --git a/Misc/NEWS.d/next/Library/2021-10-28-11-40-59.bpo-45643.jeiPiX.rst b/Misc/NEWS.d/next/Library/2021-10-28-11-40-59.bpo-45643.jeiPiX.rst new file mode 100644 index 0000000..e1592ed --- /dev/null +++ b/Misc/NEWS.d/next/Library/2021-10-28-11-40-59.bpo-45643.jeiPiX.rst @@ -0,0 +1 @@ +Added :data:`signal.SIGSTKFLT` on platforms where this signal is defined. diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c index 2013f16..9316a9e 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -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 -- cgit v0.12