Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34.1k
bpo-31731: Fix test_io.check_interrupted_write()#11225
Merged
vstinner merged 1 commit intopython:masterfromDec 18, 2018
vstinner:test_io
Merged
bpo-31731: Fix test_io.check_interrupted_write()#11225vstinner merged 1 commit intopython:masterfromvstinner:test_io
vstinner merged 1 commit intopython:masterfrom
vstinner:test_io
Conversation
Fix a possible race condition in check_interrupted_write() oftest_io: create directly the thread with SIGALRM signal blocked,rather than blocking the signal later from the thread. Previously, itwas possible that the thread gets the signal before the signal isblocked.
Contributor
miss-islington commentedDec 18, 2018
Thanks@vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7. |
bedevere-bot commentedDec 18, 2018
GH-11226 is a backport of this pull request to the3.7 branch. |
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestDec 18, 2018
Fix a race condition in check_interrupted_write() of test_io:create directly the thread with SIGALRM signal blocked,rather than blocking the signal later from the thread. Previously, itwas possible that the thread gets the signal before the signal isblocked.(cherry picked from commit05c9d31)Co-authored-by: Victor Stinner <vstinner@redhat.com>
miss-islington added a commit that referenced this pull requestDec 18, 2018
Fix a race condition in check_interrupted_write() of test_io:create directly the thread with SIGALRM signal blocked,rather than blocking the signal later from the thread. Previously, itwas possible that the thread gets the signal before the signal isblocked.(cherry picked from commit05c9d31)Co-authored-by: Victor Stinner <vstinner@redhat.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading.Please reload this page.
Fix a possible race condition in check_interrupted_write() of
test_io: create directly the thread with SIGALRM signal blocked,
rather than blocking the signal later from the thread. Previously, it
was possible that the thread gets the signal before the signal is
blocked.
https://bugs.python.org/issue31731