mirror of
https://git.yoctoproject.org/poky
synced 2026-04-13 05:02:24 +02:00
bitbake/runqueue: Add a SIGCHLD handler to ensure we wake from sleeps for SIGCHLD events
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -748,6 +748,10 @@ class RunQueueData:
|
||||
self.rqdata.runq_depends[task],
|
||||
self.rqdata.runq_revdeps[task])
|
||||
|
||||
# Dummy signal handler to ensure we break out of sleep upon SIGCHLD
|
||||
def chldhandler(signum, stackframe):
|
||||
pass
|
||||
|
||||
class RunQueue:
|
||||
def __init__(self, cooker, cfgData, dataCache, taskData, targets):
|
||||
|
||||
@@ -760,6 +764,8 @@ class RunQueue:
|
||||
|
||||
self.state = runQueuePrepare
|
||||
|
||||
signal.signal(signal.SIGCHLD, chldhandler)
|
||||
|
||||
def check_stamps(self):
|
||||
unchecked = {}
|
||||
current = []
|
||||
|
||||
Reference in New Issue
Block a user