]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.4] bpo-33329: Fix multiprocessing regression on newer glibcs (GH-6575) (#12145)
authorCheryl Sabella <cheryl.sabella@gmail.com>
Mon, 4 Mar 2019 00:01:39 +0000 (19:01 -0500)
committerlarryhastings <larry@hastings.org>
Mon, 4 Mar 2019 00:01:39 +0000 (16:01 -0800)
commit2226139aa2b69047cb54dbcfd79f5c2e36f98653
tree2f223711a6cd167cc426007352bb702460304067
parent765d333512e9b58da4a4431595a0e81517ef0443
[3.4] bpo-33329: Fix multiprocessing regression on newer glibcs (GH-6575) (#12145)

Starting with glibc 2.27.9000-xxx, sigaddset() can return EINVAL for some
reserved signal numbers between 1 and NSIG.  The `range(1, NSIG)` idiom
is commonly used to select all signals for blocking with `pthread_sigmask`.
So we ignore the sigaddset() return value until we expose sigfillset()
to provide a better idiom.
(cherry picked from commit 25038ec)

Co-authored-by: Antoine Pitrou <pitrou@free.fr>
Misc/NEWS.d/next/Library/2018-04-23-13-21-39.bpo-33329.lQ-Eod.rst [new file with mode: 0644]
Modules/signalmodule.c