]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-110205: Fix asyncio ThreadedChildWatcher._join_threads() (#110884)
authorGuido van Rossum <guido@python.org>
Fri, 27 Oct 2023 22:44:12 +0000 (15:44 -0700)
committerGitHub <noreply@github.com>
Fri, 27 Oct 2023 22:44:12 +0000 (15:44 -0700)
commitc3bb10c9303503e7b55a7bdf9acfa6b3bcb699c6
treea397c4aa0cf90638f08cc987f8e5a5f3aa1f39d3
parent1c9a0c40794f0cb3234533d5e83234e7dce4ccd4
gh-110205: Fix asyncio ThreadedChildWatcher._join_threads() (#110884)

- `ThreadedChildWatcher.close()` is now *officially* a no-op; `_join_threads()` never did anything.
- Threads created by that class are now named `asyncio-waitpid-NNN`.
- `test.test_asyncio.utils.TestCase.close_loop()` now waits for the child watcher's threads, but not forever; if a thread hangs, it raises `RuntimeError`.
Lib/asyncio/unix_events.py
Lib/test/test_asyncio/utils.py