]> code.ossystems Code Review - openembedded-core.git/commitdiff
Don't tell the user we're sending SIGINT to the remaining 0 tasks
authorChris Larson <chris_larson@mentor.com>
Tue, 8 Jun 2010 15:01:16 +0000 (08:01 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Fri, 2 Jul 2010 14:41:35 +0000 (15:41 +0100)
(Bitbake rev: 0b963e52eca0447d5bbfc87d826ad662fe940381)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/runqueue.py

index 6025142e0880890b72bfeab3ceb48fc104f6bee3..a73e0c4a6a48e9c4fa454f919d84c77a28fe8cdf 100644 (file)
@@ -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()