GeezerVison is showing github.com — PidfdChildWatcher runs callbacks on the main thread eventloop and not the currently running loop · Issue #94182 · python/cpython
PidfdChildWatcher runs callbacks on the main thread eventloop and not the currently running loop #94182Descriptionas of #93896 and #94593 asyncio.Runner(loop_factory=asyncio.new_event_loop) no longer calls asyncio.set_event_loop() and so the PidfdChildWatcher is never activated
this is unfortunate because it could run asyncio.get_running_loop().add_reader instead Activitykumaraditya303 commented on Jul 9, 2022 graingert commented on Jul 9, 2022 ContributorAuthor More actions
Wasn't this fixed by #94593?
No graingert commented on Jul 9, 2022 ContributorAuthor More actions The purpose of os.open_pidfd is to allow a single event loop running in any thread to monitor processes without needing to interact with another event loop or thread. The pidfdchildwatcher is currently unnecessarily using another loop in another thread graingert commented on Jul 19, 2022 ContributorAuthor More actions gvanrossum commented on Oct 8, 2022 Thanks for the fix!
I don't think we should backport this (not even to 3.11.1). serhiy-storchaka commented on Sep 25, 2023 This test fails if run separately. See #109862.
MetadataMetadataStatusShow more project fields
DevelopmentNo branches or pull requestsIssue actions
|