Skip to content

Conversation

@kumaraditya303
Copy link
Contributor

@kumaraditya303 kumaraditya303 commented Nov 4, 2025

This documents the asyncio's behavior of killing the subprocess if the transport is closed or gets garbage collected.
This behaviour is tested at

def test_close_kill_running(self):


📚 Documentation preview 📚: https://cpython-previews--140997.org.readthedocs.build/

@kumaraditya303 kumaraditya303 added the docs Documentation in the Doc dir label Nov 4, 2025
@kumaraditya303 kumaraditya303 added the needs backport to 3.14 bugs and security fixes label Nov 4, 2025
@github-project-automation github-project-automation bot moved this to Todo in Docs PRs Nov 4, 2025
@kumaraditya303 kumaraditya303 merged commit 101c9c0 into python:main Nov 6, 2025
41 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Nov 6, 2025
@miss-islington-app
Copy link

Thanks @kumaraditya303 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 6, 2025
…transport gets garbage collected (pythonGH-140997)

(cherry picked from commit 101c9c0)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
@bedevere-app
Copy link

bedevere-app bot commented Nov 6, 2025

GH-141110 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Nov 6, 2025
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 6, 2025
…transport gets garbage collected (pythonGH-140997)

(cherry picked from commit 101c9c0)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
@bedevere-app
Copy link

bedevere-app bot commented Nov 6, 2025

GH-141111 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Nov 6, 2025
@kumaraditya303 kumaraditya303 deleted the asyncio-subprocess-docs-tests branch November 6, 2025 04:51
kumaraditya303 added a commit that referenced this pull request Nov 6, 2025
… transport gets garbage collected (GH-140997) (#141110)

gh-118516: clarify that subprocess are automatically killed if transport gets garbage collected (GH-140997)
(cherry picked from commit 101c9c0)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
kumaraditya303 added a commit that referenced this pull request Nov 6, 2025
… transport gets garbage collected (GH-140997) (#141111)

gh-118516: clarify that subprocess are automatically killed if transport gets garbage collected (GH-140997)
(cherry picked from commit 101c9c0)

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

docs Documentation in the Doc dir skip news topic-asyncio

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant