mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
[3.13] gh-140485: Catch ChildProcessError in multiprocessing resource tracker (GH-141132) (#141385)
gh-140485: Catch ChildProcessError in multiprocessing resource tracker (GH-141132)
(cherry picked from commit 9cb8c52d5e)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
a9c00827dd
commit
8f47ec58f6
1 changed files with 6 additions and 1 deletions
|
|
@ -115,7 +115,12 @@ class ResourceTracker(object):
|
|||
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