-
-
Notifications
You must be signed in to change notification settings - Fork 33.4k
gh-103847: fix cancellation safety of asyncio.create_subprocess_exec
#140805
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
gh-103847: fix cancellation safety of asyncio.create_subprocess_exec
#140805
Conversation
f79799a to
c8c31fd
Compare
7d3858a to
12cd899
Compare
|
I have added three tests all of which hang on main branch without this PR and manually tested that it fixes reproducers on the issue as well. |
|
🤖 New build scheduled with the buildbot fleet by @kumaraditya303 for commit 56beaf2 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F140805%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
|
Thanks @kumaraditya303 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
…s_exec` (pythonGH-140805) (cherry picked from commit ef474cf) Co-authored-by: Kumar Aditya <kumaraditya@python.org>
|
GH-141446 is a backport of this pull request to the 3.14 branch. |
…s_exec` (pythonGH-140805) (cherry picked from commit ef474cf) Co-authored-by: Kumar Aditya <kumaraditya@python.org>
|
GH-141447 is a backport of this pull request to the 3.13 branch. |
This PR fixes the cancellation safety of
asyncio.create_subprocess_exec. This is the simplest change I can think of which fixes the issue and is small enough that it can backported as well. A larger change would be rewrite some part of_UnixSubprocessTransportto make it cancellation safe but that would be a much larger change that I would be comfortable doing for 3.15 only.I plan to add some tests by end of week.