gh-140485: Catch ChildProcessError in multiprocessing resource tracker (GH-141132)

This commit is contained in:
Victor Stinner 2025-11-11 05:59:16 +01:00 committed by GitHub
parent 46b58e1bb9
commit 9cb8c52d5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -111,7 +111,12 @@ def _stop_locked(
close(self._fd)
self._fd = None
_, status = waitpid(self._pid, 0)
try:
_, status = waitpid(self._pid, 0)
except ChildProcessError:
self._pid = None
self._exitcode = None
return
self._pid = None