summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-05-24 11:45:59 +0100
committerSteve Sakoman <steve@sakoman.com>2024-06-06 06:53:49 -0700
commitfb60467f0e51f405997c545dd8ddf7c6c818e2f3 (patch)
treea6a2f113b6307bafe570b0d0f3de91c2920377dc /bitbake
parentbb93b6d1fbe2565d54ca202d840e877fa3563943 (diff)
downloadpoky-fb60467f0e51f405997c545dd8ddf7c6c818e2f3.tar.gz
bitbake: runqueue: Allow rehash loop to exit in case of interrupts
The initial hash serve loop exits in the case where interrupts are present but probably checks a bit too often. Tweak that and also allow the slow rehash loop to break on interrupt, improving bitbake Ctrl+C response. (Bitbake rev: ca2f63d84b90cbd99936c9d7815d912d9019a594) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/runqueue.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index beec1e0465..85c3581f9d 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -1285,7 +1285,8 @@ class RunQueueData:
1285 dealtwith.add(tid) 1285 dealtwith.add(tid)
1286 todeal.remove(tid) 1286 todeal.remove(tid)
1287 self.prepare_task_hash(tid) 1287 self.prepare_task_hash(tid)
1288 bb.event.check_for_interrupts(self.cooker.data) 1288
1289 bb.event.check_for_interrupts(self.cooker.data)
1289 1290
1290 if time.time() > (lasttime + 30): 1291 if time.time() > (lasttime + 30):
1291 lasttime = time.time() 1292 lasttime = time.time()
@@ -2601,6 +2602,7 @@ class RunQueueExecute:
2601 next |= self.rqdata.runtaskentries[tid].revdeps 2602 next |= self.rqdata.runtaskentries[tid].revdeps
2602 total.remove(tid) 2603 total.remove(tid)
2603 next.intersection_update(total) 2604 next.intersection_update(total)
2605 bb.event.check_for_interrupts(self.cooker.data)
2604 2606
2605 if time.time() > (lasttime + 30): 2607 if time.time() > (lasttime + 30):
2606 lasttime = time.time() 2608 lasttime = time.time()