From 03d40a4a7bd60dcbc21f5a06c0f4f53cb47de0f3 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 15 Feb 2011 23:19:43 +0000 Subject: bitbake/runqueue: Add a SIGCHLD handler to ensure we wake from sleeps for SIGCHLD events Signed-off-by: Richard Purdie --- bitbake/lib/bb/runqueue.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bitbake/lib/bb/runqueue.py') diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index a3f444c2a..1d38032e6 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py @@ -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 = [] -- cgit v1.2.3