Skip to content

Conversation

@kumaraditya303
Copy link
Contributor

@kumaraditya303 kumaraditya303 commented Oct 30, 2025

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 _UnixSubprocessTransport to 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.

@kumaraditya303 kumaraditya303 force-pushed the asyncio-subprocess-cancellation branch from 7d3858a to 12cd899 Compare October 31, 2025 12:55
@kumaraditya303
Copy link
Contributor Author

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.

@kumaraditya303 kumaraditya303 added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Nov 1, 2025
@bedevere-bot
Copy link

🤖 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.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Nov 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants