Skip to content

Conversation

pitrou
Copy link
Member

@pitrou pitrou 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)

https://bugs.python.org/issue33329

…onGH-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.
(cherry picked from commit 25038ec)
@bedevere-bot bedevere-bot added the type-bug An unexpected behavior, bug, or error label Apr 23, 2018
@pitrou pitrou merged commit b0ca398 into python:3.6 Apr 23, 2018
@pitrou pitrou deleted the backport-25038ec-3.6 branch April 23, 2018 20:22
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.

3 participants