mirror of
https://github.com/python/cpython.git
synced 2025-08-16 23:01:34 +00:00
GH-85760: Fix race in calling process_exited callback too early (GH-97009)
(cherry picked from commit 282edd7b2a
)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
This commit is contained in:
parent
646aa7efb3
commit
43d8860aa2
2 changed files with 3 additions and 1 deletions
|
@ -223,7 +223,8 @@ class _UnixSelectorEventLoop(selector_events.BaseSelectorEventLoop):
|
|||
return transp
|
||||
|
||||
def _child_watcher_callback(self, pid, returncode, transp):
|
||||
self.call_soon_threadsafe(transp._process_exited, returncode)
|
||||
# Skip one iteration for callbacks to be executed
|
||||
self.call_soon_threadsafe(self.call_soon, transp._process_exited, returncode)
|
||||
|
||||
async def create_unix_connection(
|
||||
self, protocol_factory, path=None, *,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue