From: Chris Larson Date: Tue, 8 Jun 2010 15:01:16 +0000 (-0700) Subject: Don't tell the user we're sending SIGINT to the remaining 0 tasks X-Git-Tag: 2011-1~5487 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=4fac507dfb6aeb3b68dfa7f1945ff9132ad457d5;p=openembedded-core.git Don't tell the user we're sending SIGINT to the remaining 0 tasks (Bitbake rev: 0b963e52eca0447d5bbfc87d826ad662fe940381) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 6025142e08..a73e0c4a6a 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py @@ -1030,12 +1030,13 @@ class RunQueue: return def finish_runqueue_now(self): - bb.msg.note(1, bb.msg.domain.RunQueue, "Sending SIGINT to remaining %s tasks" % self.stats.active) - for k, v in self.build_pids.iteritems(): - try: - os.kill(-k, signal.SIGINT) - except: - pass + if self.stats.active: + bb.msg.note(1, bb.msg.domain.RunQueue, "Sending SIGINT to remaining %s tasks" % self.stats.active) + for k, v in self.build_pids.iteritems(): + try: + os.kill(-k, signal.SIGINT) + except: + pass for pipe in self.build_pipes: self.build_pipes[pipe].read()