]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-96652: Fix faulthandler chained signal without sigaction() (GH-96666)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 8 Sep 2022 10:43:24 +0000 (03:43 -0700)
committerGitHub <noreply@github.com>
Thu, 8 Sep 2022 10:43:24 +0000 (03:43 -0700)
commit3ae2be69cc7d99979e00d2ea9217496b8529bdd6
treec1378d48f3b11487c27596058f4eb4aba20f5baf
parent6ee7a6b947c607ac79e5b66177405787dcaa8c06
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>
Misc/NEWS.d/next/Library/2022-09-07-22-49-37.gh-issue-96652.YqOKxI.rst [new file with mode: 0644]
Modules/faulthandler.c