-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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
bpo-37420: os.sched_setaffinity does not handle errors during iteration. #14414
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Thanks @brandtbucher for the PR, and @benjaminp for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8. |
I'm having trouble backporting to |
GH-14425 is a backport of this pull request to the 3.7 branch. |
…ity. (pythonGH-14414) (cherry picked from commit 45a30af) Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
Thanks @brandtbucher for the PR, and @benjaminp for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8. |
GH-14426 is a backport of this pull request to the 3.8 branch. |
…ity. (pythonGH-14414) (cherry picked from commit 45a30af) Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
This is related to bpo-37417:
os.sched_setaffinity
doesn't properly handle errors that arise during iteration of themask
argument:It looks like this bug is also present on all versions of Python 3. I've attached a patch with a fix and a regression test.
https://bugs.python.org/issue37420