-
-
Notifications
You must be signed in to change notification settings - Fork 32k
bpo-46785: Fix race condition between os.stat()
and unlink
#31858
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
zooba
merged 16 commits into
python:main
from
itaisteinherz:bugfix/bpo-46785-os-stat-error-handling
May 2, 2022
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
4b7d59d
Gracefully handle expected errors returned by `FindFirstFileW` in `wi…
itaisteinherz 3c841f3
Add test for bugfix
itaisteinherz cfc3f2b
Add myself to Misc/ACKS
itaisteinherz cb4896b
📜🤖 Added by blurb_it.
blurb-it[bot] b78e22c
Remove resolved TODO
itaisteinherz 918e1ba
Resolve all TODOs
itaisteinherz d576c3f
Document caught error codes
itaisteinherz a8fb3f7
Remove duplicate call to `GetLastError()`
itaisteinherz 88fb1fe
CR improvement
itaisteinherz 5ac6f47
CR improvements
itaisteinherz b212087
Remove unused variable
itaisteinherz 7669397
Terminate test thread at end of test
itaisteinherz 1963993
Add test for race between rmdir and stat
itaisteinherz 4c0f342
Improve bugfix description
itaisteinherz 765194c
Remove new test
itaisteinherz 7d8e146
Merge branch 'main' into bugfix/bpo-46785-os-stat-error-handling
itaisteinherz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
1 change: 1 addition & 0 deletions
1
Misc/NEWS.d/next/Windows/2022-03-13-20-35-41.bpo-46785.Pnknyl.rst
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fix race condition between :func:`os.stat` and unlinking a file on Windows, by using errors codes returned by ``FindFirstFileW()`` when appropriate in ``win32_xstat_impl``. |
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
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.