mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
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>
This commit is contained in:
committed by
Steve Sakoman
parent
bb93b6d1fb
commit
fb60467f0e
@@ -1285,7 +1285,8 @@ class RunQueueData:
|
|||||||
dealtwith.add(tid)
|
dealtwith.add(tid)
|
||||||
todeal.remove(tid)
|
todeal.remove(tid)
|
||||||
self.prepare_task_hash(tid)
|
self.prepare_task_hash(tid)
|
||||||
bb.event.check_for_interrupts(self.cooker.data)
|
|
||||||
|
bb.event.check_for_interrupts(self.cooker.data)
|
||||||
|
|
||||||
if time.time() > (lasttime + 30):
|
if time.time() > (lasttime + 30):
|
||||||
lasttime = time.time()
|
lasttime = time.time()
|
||||||
@@ -2601,6 +2602,7 @@ class RunQueueExecute:
|
|||||||
next |= self.rqdata.runtaskentries[tid].revdeps
|
next |= self.rqdata.runtaskentries[tid].revdeps
|
||||||
total.remove(tid)
|
total.remove(tid)
|
||||||
next.intersection_update(total)
|
next.intersection_update(total)
|
||||||
|
bb.event.check_for_interrupts(self.cooker.data)
|
||||||
|
|
||||||
if time.time() > (lasttime + 30):
|
if time.time() > (lasttime + 30):
|
||||||
lasttime = time.time()
|
lasttime = time.time()
|
||||||
|
|||||||
Reference in New Issue
Block a user