forked from python-trio/trio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This addresses a number of issues: - Fixes a major issue where aclose() called notify_fd_closed() unconditionally, even if the fd was closed; if the fd had already been recycled this could (and did) affect unrelated file descriptors: python-trio#661 (comment) - Fixes a theoretical issue (not yet observed in the wild) where a poorly timed close could fail to be noticed by other tasks (python-triogh-661) - Adds ConflictDetectors to catch attempts to use the same stream from multiple tasks simultaneously - Switches from inheritance to composition (python-triogh-830) Still todo: - Tests for these race conditions that snuck through - Audit _windows_pipes.py and _socket.py for related issues
- Loading branch information
Showing
3 changed files
with
144 additions
and
101 deletions.
There are no files selected for viewing
This file contains 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,3 @@ | ||
Fixed several bugs in the new subprocess pipe support, where | ||
operations on a closed pipe could accidentally affect another | ||
unrelated pipe due to internal file-descriptor reuse. |
This file contains 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 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