summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib')
-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 6025142e08..a73e0c4a6a 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -1030,12 +1030,13 @@ class RunQueue:
1030 return 1030 return
1031 1031
1032 def finish_runqueue_now(self): 1032 def finish_runqueue_now(self):
1033 bb.msg.note(1, bb.msg.domain.RunQueue, "Sending SIGINT to remaining %s tasks" % self.stats.active) 1033 if self.stats.active:
1034 for k, v in self.build_pids.iteritems(): 1034 bb.msg.note(1, bb.msg.domain.RunQueue, "Sending SIGINT to remaining %s tasks" % self.stats.active)
1035 try: 1035 for k, v in self.build_pids.iteritems():
1036 os.kill(-k, signal.SIGINT) 1036 try:
1037 except: 1037 os.kill(-k, signal.SIGINT)
1038 pass 1038 except:
1039 pass
1039 for pipe in self.build_pipes: 1040 for pipe in self.build_pipes:
1040 self.build_pipes[pipe].read() 1041 self.build_pipes[pipe].read()
1041 1042