Skip to content

[3.7] bpo-33329: Fix multiprocessing regression on newer glibcs (GH-6575) #6579

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 23, 2018

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Apr 23, 2018

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 [email protected]

https://bugs.python.org/issue33329

)

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 <[email protected]>
@miss-islington
Copy link
Contributor Author

@pitrou: Backport status check is done, and it's a success ✅ .

@pitrou pitrou merged commit 75a3e3d into python:3.7 Apr 23, 2018
@miss-islington
Copy link
Contributor Author

Thanks, @pitrou!

@miss-islington miss-islington deleted the backport-25038ec-3.7 branch April 23, 2018 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants