]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-110205: Fix asyncio ThreadedChildWatcher._join_threads() (GH-110884) (...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 27 Oct 2023 23:36:05 +0000 (01:36 +0200)
committerGitHub <noreply@github.com>
Fri, 27 Oct 2023 23:36:05 +0000 (16:36 -0700)
commit2398036eeafad68d7cc0829e89405cc1974dc012
treecb63c496edfef9e51d0ffa02afdff5f1269f5f3c
parent754fda88d1ec36b6277d11d9f8e9710b392eca19
[3.12] gh-110205: Fix asyncio ThreadedChildWatcher._join_threads() (GH-110884) (#111412)

- `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`.
(cherry picked from commit c3bb10c9303503e7b55a7bdf9acfa6b3bcb699c6)

Co-authored-by: Guido van Rossum <guido@python.org>
Lib/asyncio/unix_events.py
Lib/test/test_asyncio/utils.py