Skip to content

[3.14] gh-139894: fix incorrect sharing of current task while forking in asyncio (GH-139897) - #139913

Merged
kumaraditya303 merged 2 commits into
python:3.14from
kumaraditya303:backport-b881df4-3.14
Oct 10, 2025
Merged

kumaraditya303 merged 2 commits into
python:3.14from
kumaraditya303:backport-b881df4-3.14

Conversation

@kumaraditya303

@kumaraditya303 kumaraditya303 commented Oct 10, 2025 •

Copy link
Copy Markdown
Contributor

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)

…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic-asyncio type-bug An unexpected behavior, bug, or error

1 participant