]> granicus.if.org Git - python/commit
bpo-33329: Fix multiprocessing regression on newer glibcs (GH-6575) (GH-6579)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 23 Apr 2018 19:42:26 +0000 (12:42 -0700)
committerAntoine Pitrou <pitrou@free.fr>
Mon, 23 Apr 2018 19:42:26 +0000 (21:42 +0200)
commit75a3e3d5bc0be1ce41289b661e7c53039cf3d5ba
tree15231e534f2f08c4532b962c87b62d26177d1739
parent9fc998d761591f2741d8e94f5b3009c56ae83882
bpo-33329: Fix multiprocessing regression on newer glibcs (GH-6575) (GH-6579)

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 25038ecfb665bef641abf8cb61afff7505b0e008)

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