From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C5FAC138010 for ; Wed, 3 Oct 2012 18:56:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7D449E0102; Wed, 3 Oct 2012 18:56:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4AF75E0102 for ; Wed, 3 Oct 2012 18:56:15 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B3B4D33CF72 for ; Wed, 3 Oct 2012 18:56:14 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 2AA49E5436 for ; Wed, 3 Oct 2012 18:56:13 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1349290550.5de3c48a4221ec1f4a044a2e424b113770db5386.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/util/_async/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/util/_async/AsyncScheduler.py X-VCS-Directories: pym/portage/util/_async/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 5de3c48a4221ec1f4a044a2e424b113770db5386 X-VCS-Branch: master Date: Wed, 3 Oct 2012 18:56:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 0cc04e2f-f3bf-4c88-b329-b7581b7d5e8a X-Archives-Hash: a53c500e284c041e742755acdc9519b8 commit: 5de3c48a4221ec1f4a044a2e424b113770db5386 Author: Zac Medico gentoo org> AuthorDate: Wed Oct 3 18:55:50 2012 +0000 Commit: Zac Medico gentoo org> CommitDate: Wed Oct 3 18:55:50 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=5de3c48a AsyncScheduler: poll in _schedule_tasks Triggers cleanup and exit listeners if there's nothing left to do. --- pym/portage/util/_async/AsyncScheduler.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/pym/portage/util/_async/AsyncScheduler.py b/pym/portage/util/_async/AsyncScheduler.py index 3fb079c..f6285b7 100644 --- a/pym/portage/util/_async/AsyncScheduler.py +++ b/pym/portage/util/_async/AsyncScheduler.py @@ -59,6 +59,9 @@ class AsyncScheduler(AsynchronousTask, PollScheduler): task.addExitListener(self._task_exit) task.start() + # Triggers cleanup and exit listeners if there's nothing left to do. + self.poll() + def _task_exit(self, task): self._running_tasks.discard(task) if task.returncode != os.EX_OK: