summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-15 23:19:43 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-15 23:19:43 +0000
commit03d40a4a7bd60dcbc21f5a06c0f4f53cb47de0f3 (patch)
tree67aa9cfcdfdf0725cdc51943ef63d41a799200b3 /bitbake
parent579ecccc2244da43b9bc03fb09bb71d8a0219a8b (diff)
downloadopenembedded-core-contrib-03d40a4a7bd60dcbc21f5a06c0f4f53cb47de0f3.tar.gz
bitbake/runqueue: Add a SIGCHLD handler to ensure we wake from sleeps for SIGCHLD events
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/runqueue.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index a3f444c2ab..1d38032e61 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 = []