]> granicus.if.org Git - python/commit
[3.5] bpo-33329: Fix multiprocessing regression on newer glibcs (GH-6575) (#12144)
authorCheryl Sabella <cheryl.sabella@gmail.com>
Mon, 4 Mar 2019 00:00:49 +0000 (19:00 -0500)
committerlarryhastings <larry@hastings.org>
Mon, 4 Mar 2019 00:00:49 +0000 (16:00 -0800)
commit8ec1fd11f2d524859cfefae76458fcfd22decf65
tree96f9a6c3c6c9a2377874a4412d26a6deba191706
parent56f8783e3e32ddc0cb84a96711e3861aea9895ac
[3.5] bpo-33329: Fix multiprocessing regression on newer glibcs (GH-6575) (#12144)

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