mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
[3.14] gh-140485: Catch ChildProcessError in multiprocessing resource tracker (GH-141132) (#141384)
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
6d31d085f0
commit
ec836f2ad6
1 changed files with 6 additions and 1 deletions
|
|
@ -111,7 +111,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