]> granicus.if.org Git - python/commit
[3.6] bpo-33329: Fix multiprocessing regression on newer glibcs (GH-6575) (GH-6582)
authorAntoine Pitrou <pitrou@free.fr>
Mon, 23 Apr 2018 20:22:49 +0000 (22:22 +0200)
committerGitHub <noreply@github.com>
Mon, 23 Apr 2018 20:22:49 +0000 (22:22 +0200)
commitb0ca398cabd2d2ea2d66fa50b08e297a60388c75
tree4e0886c84c8075b86f96e4dcb79519b0160653d5
parent8a6f4b4bba950fb8eead1b176c58202d773f2f70
[3.6] bpo-33329: Fix multiprocessing regression on newer glibcs (GH-6575) (GH-6582)

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)
Misc/NEWS.d/next/Library/2018-04-23-13-21-39.bpo-33329.lQ-Eod.rst [new file with mode: 0644]
Modules/signalmodule.c