From 8e5325b4a7b15828e24c4f29c65d51d1b84bfc3f Mon Sep 17 00:00:00 2001 From: Gareth Rees Date: Thu, 28 Oct 2021 11:34:29 +0100 Subject: [PATCH] bpo-45643: Add signal.SIGSTKFLT on platforms where this is defined. --- Doc/library/signal.rst | 10 ++++++++++ .../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 63821866a012bb..abc30362da9e27 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 00000000000000..e1592ed53ab25b --- /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 09f4aed9d5ca9a..af945a1d5ef676 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -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