]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-45643: Add signal.SIGSTKFLT on platforms where this is defined (GH-29266)
authorGareth Rees <grees@undo.io>
Mon, 13 Dec 2021 17:22:43 +0000 (17:22 +0000)
committerGitHub <noreply@github.com>
Mon, 13 Dec 2021 17:22:43 +0000 (18:22 +0100)
Doc/library/signal.rst
Misc/NEWS.d/next/Library/2021-10-28-11-40-59.bpo-45643.jeiPiX.rst [new file with mode: 0644]
Modules/signalmodule.c

index 63821866a012bb9666ee7ac485598b0d5f96db80..abc30362da9e278e582ee1b5af8daa65841fdc28 100644 (file)
@@ -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 (file)
index 0000000..e1592ed
--- /dev/null
@@ -0,0 +1 @@
+Added :data:`signal.SIGSTKFLT` on platforms where this signal is defined.
index 2013f16ed440ee45d3b30b6fb8935108011c3ce3..9316a9eed7684770bf8e8a256c78319d36b6045f 100644 (file)
@@ -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