mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-140485: Catch ChildProcessError in multiprocessing resource tracker (GH-141132)
This commit is contained in:
parent
46b58e1bb9
commit
9cb8c52d5e
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue