]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-96652: Fix faulthandler chained signal without sigaction() (#96666)
authorVictor Stinner <vstinner@python.org>
Thu, 8 Sep 2022 10:20:22 +0000 (12:20 +0200)
committerGitHub <noreply@github.com>
Thu, 8 Sep 2022 10:20:22 +0000 (12:20 +0200)
commitc580a81af91af4b9df85e466f8b48c3c9c86c3df
tree01376fd4bec085e1682564ad5a914b0fbe894ecc
parent4f523a70543a79a3bbca9bf2ce9abb8fad0aaad2
gh-96652: Fix faulthandler chained signal without sigaction() (#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.
Misc/NEWS.d/next/Library/2022-09-07-22-49-37.gh-issue-96652.YqOKxI.rst [new file with mode: 0644]
Modules/faulthandler.c