summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-06-08 08:01:16 -0700
committerChris Larson <chris_larson@mentor.com>2010-06-08 08:01:16 -0700
commit0b963e52eca0447d5bbfc87d826ad662fe940381 (patch)
tree45c439e8a768a7f8eebd67fe147a40abb3bbf5eb /lib
parentec1f2773b4811b3beb52710120bb5a9b215c174e (diff)
downloadbitbake-0b963e52eca0447d5bbfc87d826ad662fe940381.tar.gz
Don't tell the user we're sending SIGINT to the remaining 0 tasks
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/runqueue.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index e2cd711af..3699ad873 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -1029,12 +1029,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()