summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-09-08 10:43:24 (GMT)
committerGitHub <noreply@github.com>2022-09-08 10:43:24 (GMT)
commit3ae2be69cc7d99979e00d2ea9217496b8529bdd6 (patch)
treec1378d48f3b11487c27596058f4eb4aba20f5baf /Misc
parent6ee7a6b947c607ac79e5b66177405787dcaa8c06 (diff)
downloadcpython-3ae2be69cc7d99979e00d2ea9217496b8529bdd6.zip
cpython-3ae2be69cc7d99979e00d2ea9217496b8529bdd6.tar.gz
cpython-3ae2be69cc7d99979e00d2ea9217496b8529bdd6.tar.bz2
gh-96652: Fix faulthandler chained signal without sigaction() (GH-96666)
Fix the faulthandler implementation of faulthandler.register(signal, chain=True) if the sigaction() function is not available: don't call the previous signal handler if it's NULL. (cherry picked from commit c580a81af91af4b9df85e466f8b48c3c9c86c3df) Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2022-09-07-22-49-37.gh-issue-96652.YqOKxI.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-09-07-22-49-37.gh-issue-96652.YqOKxI.rst b/Misc/NEWS.d/next/Library/2022-09-07-22-49-37.gh-issue-96652.YqOKxI.rst
new file mode 100644
index 0000000..1d04db7
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2022-09-07-22-49-37.gh-issue-96652.YqOKxI.rst
@@ -0,0 +1,3 @@
+Fix the faulthandler implementation of ``faulthandler.register(signal,
+chain=True)`` if the ``sigaction()`` function is not available: don't call
+the previous signal handler if it's NULL. Patch by Victor Stinner.