mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Avoid zombie processes when parallel builds fail (#11923)
This commit is contained in:
committed by
GitHub
parent
9faf114ea1
commit
ceb3b2a904
@@ -94,7 +94,12 @@ class ParallelTasks:
|
||||
proc = context.Process(target=self._process, args=(psend, task_func, arg))
|
||||
self._procs[tid] = proc
|
||||
self._precvsWaiting[tid] = precv
|
||||
self._join_one()
|
||||
try:
|
||||
self._join_one()
|
||||
except Exception:
|
||||
# shutdown other child processes on failure
|
||||
# (e.g. OSError: Failed to allocate memory)
|
||||
self.terminate()
|
||||
|
||||
def join(self) -> None:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user