mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00: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_depends[task],
|
||||||
self.rqdata.runq_revdeps[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:
|
class RunQueue:
|
||||||
def __init__(self, cooker, cfgData, dataCache, taskData, targets):
|
def __init__(self, cooker, cfgData, dataCache, taskData, targets):
|
||||||
|
|
||||||
@@ -760,6 +764,8 @@ class RunQueue:
|
|||||||
|
|
||||||
self.state = runQueuePrepare
|
self.state = runQueuePrepare
|
||||||
|
|
||||||
|
signal.signal(signal.SIGCHLD, chldhandler)
|
||||||
|
|
||||||
def check_stamps(self):
|
def check_stamps(self):
|
||||||
unchecked = {}
|
unchecked = {}
|
||||||
current = []
|
current = []
|
||||||
|
|||||||
Reference in New Issue
Block a user