From 572fc99bdcd57c911c60f767688f597a23cbe2ef Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 8 Jul 2008 16:59:40 +0000 Subject: [PATCH] Fix infinite loop in CompositeTask._wait(). svn path=/main/trunk/; revision=10986 --- pym/_emerge/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index d7cd8fa11..f0a0a687c 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -1579,11 +1579,14 @@ class CompositeTask(AsynchronousTask): def _wait(self): + prev = None while True: task = self._current_task - if task is None: + if task is None or task is prev: + # don't wait for the same task more than once break task.wait() + prev = task return self.returncode -- 2.26.2