summaryrefslogtreecommitdiff
path: root/bitbake
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-06-08 08:01:16 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-02 15:41:35 +0100
commit4fac507dfb6aeb3b68dfa7f1945ff9132ad457d5 (patch)
treec5889947c6910e1732fe4996c8b53f382338834b /bitbake
parent186f85746668b0dfa8d887248a1384db298af5f5 (diff)
downloadopenembedded-core-4fac507dfb6aeb3b68dfa7f1945ff9132ad457d5.tar.gz
openembedded-core-4fac507dfb6aeb3b68dfa7f1945ff9132ad457d5.tar.bz2
openembedded-core-4fac507dfb6aeb3b68dfa7f1945ff9132ad457d5.tar.xz
openembedded-core-4fac507dfb6aeb3b68dfa7f1945ff9132ad457d5.zip
Don't tell the user we're sending SIGINT to the remaining 0 tasks
(Bitbake rev: 0b963e52eca0447d5bbfc87d826ad662fe940381) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/runqueue.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 6025142e0..a73e0c4a6 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()