summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGareth Rees <grees@undo.io>2021-12-13 17:22:43 (GMT)
committerGitHub <noreply@github.com>2021-12-13 17:22:43 (GMT)
commita62be77266b1beadd42d4952186332bc0847b7d6 (patch)
treeabd18e3df50cc28a966f85a36b8e475051b203ba
parent191c431de7d9b23484dd16f67e62c6e85a1fac7f (diff)
downloadcpython-a62be77266b1beadd42d4952186332bc0847b7d6.zip
cpython-a62be77266b1beadd42d4952186332bc0847b7d6.tar.gz
cpython-a62be77266b1beadd42d4952186332bc0847b7d6.tar.bz2
bpo-45643: Add signal.SIGSTKFLT on platforms where this is defined (GH-29266)
-rw-r--r--Doc/library/signal.rst10
-rw-r--r--Misc/NEWS.d/next/Library/2021-10-28-11-40-59.bpo-45643.jeiPiX.rst1
-rw-r--r--Modules/signalmodule.c3
3 files changed, 14 insertions, 0 deletions
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