]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-64783: Fix signal.NSIG value on FreeBSD (#91929)
authorVictor Stinner <vstinner@python.org>
Mon, 25 Apr 2022 22:13:31 +0000 (00:13 +0200)
committerGitHub <noreply@github.com>
Mon, 25 Apr 2022 22:13:31 +0000 (00:13 +0200)
commit20cc69528677b3e5191139d1cb587531f4893b55
tree50c706da1e4040b15b1d2cda8eb7a1a13a48b7dc
parent61381d7da1233849b280706f11dbcae4deed949d
gh-64783: Fix signal.NSIG value on FreeBSD (#91929)

Fix signal.NSIG value on FreeBSD to accept signal numbers greater
than 32, like signal.SIGRTMIN and signal.SIGRTMAX.

* Add Py_NSIG constant.
* Add pycore_signal.h internal header file.
* _Py_Sigset_Converter() now includes the range of valid signals in
  the error message.
Doc/library/signal.rst
Include/internal/pycore_pylifecycle.h
Include/internal/pycore_signal.h [new file with mode: 0644]
Lib/test/test_signal.py
Makefile.pre.in
Misc/NEWS.d/next/Library/2022-04-25-18-30-20.gh-issue-64783.HFtERN.rst [new file with mode: 0644]
Modules/faulthandler.c
Modules/posixmodule.c
Modules/signalmodule.c
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters