]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-94182: Run the PidfdChildWatcher on the running loop (#94184)
authorThomas Grainger <tagrain@gmail.com>
Sat, 8 Oct 2022 00:24:01 +0000 (01:24 +0100)
committerGitHub <noreply@github.com>
Sat, 8 Oct 2022 00:24:01 +0000 (17:24 -0700)
commit3d8b22454728b6d54cc476cfb59e47ab40f3f527
tree32f85c6b66f858a5235408a1b2b3b4de98b6a7f1
parent27ce45d8e105d0c9f9286c3cab830590d4c7cea3
GH-94182: Run the PidfdChildWatcher on the running loop (#94184)

There is no reason for this watcher to be attached to any particular loop.
This should make it safe to use regardless of the lifetime of the event loop running in the main thread
(relative to other loops).

Co-authored-by: Yury Selivanov <yury@edgedb.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Lib/asyncio/unix_events.py
Lib/test/test_asyncio/test_subprocess.py
Misc/NEWS.d/next/Library/2022-06-24-08-49-47.gh-issue-94182.Wknau0.rst [new file with mode: 0644]