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:
Richard Purdie
2011-02-15 23:19:43 +00:00
parent 579ecccc22
commit 03d40a4a7b

View File

@@ -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 = []