-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
gh-139894: fix incorrect sharing of current task while forking in asyncio
#139897
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
Conversation
🤖 New build scheduled with the buildbot fleet by @kumaraditya303 for commit 42f5468 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F139897%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.14. |
Sorry, @kumaraditya303, I could not cleanly backport this to
|
…orking in `asyncio` (pythonGH-139897) Fix incorrect sharing of current task with the forked child process by clearing thread state's current task and current loop in `PyOS_AfterFork_Child`. (cherry picked from commit b881df4) Co-authored-by: Kumar Aditya <kumaraditya@python.org>
GH-139913 is a backport of this pull request to the 3.14 branch. |
…orking in `asyncio` (pythonGH-139897) Fix incorrect sharing of current task with the forked child process by clearing thread state's current task and current loop in `PyOS_AfterFork_Child`. (cherry picked from commit b881df4) Co-authored-by: Kumar Aditya <kumaraditya@python.org>
… in `asyncio` (GH-139897) (#139913) * [3.14] gh-139894: fix incorrect sharing of current task while forking in `asyncio` (GH-139897) Fix incorrect sharing of current task with the forked child process by clearing thread state's current task and current loop in `PyOS_AfterFork_Child`. (cherry picked from commit b881df4) Co-authored-by: Kumar Aditya <kumaraditya@python.org> * Update Lib/test/test_asyncio/test_unix_events.py
Fix incorrect sharing of current task with the forked child process by clearing thread state's current task and current loop in
PyOS_AfterFork_Child
.