]> granicus.if.org Git - python/commit
bpo-33329: Fix multiprocessing regression on newer glibcs (GH-6575)
authorAntoine Pitrou <pitrou@free.fr>
Mon, 23 Apr 2018 18:53:33 +0000 (20:53 +0200)
committerGitHub <noreply@github.com>
Mon, 23 Apr 2018 18:53:33 +0000 (20:53 +0200)
commit25038ecfb665bef641abf8cb61afff7505b0e008
treed0533ec3997b74154bfbae9ab06404094086f596
parentc2d384dbd7c6ed9bdfaac45f05b463263c743ee7
bpo-33329: Fix multiprocessing regression on newer glibcs (GH-6575)

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