]> 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:47:07 +0000 (03:47 -0700)
committerGitHub <noreply@github.com>
Thu, 8 Sep 2022 10:47:07 +0000 (03:47 -0700)
commit3d6e6beb0d85f064a19e60012d140b5bc4ea0cca
treec8a0ff036b1bb1c14cf381719be34f299b2ac90f
parenta3d5ecba1c6a5533b4c25d86d5861245010b9a65
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