From: Zac Medico Date: Sat, 19 Jul 2008 13:22:56 +0000 (-0000) Subject: Calling _schedule() from Scheduler._poll() is unsafe since the _schedule() X-Git-Tag: v2.2_rc2~28 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b897e4d00f69ac16554a5c554da9735c4ceb9435;p=portage.git Calling _schedule() from Scheduler._poll() is unsafe since the _schedule() call itself can consume poll events. Therefore, until a safe way exists, don't do it. svn path=/main/trunk/; revision=11141 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index d8583f9d5..a9d9c9179 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -8767,7 +8767,7 @@ class Scheduler(PollScheduler): self._running_root, installed=True) def _poll(self, timeout=None): - self._schedule() + self._status_display.display() return PollScheduler._poll(self, timeout=timeout) def _set_max_jobs(self, max_jobs):