aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
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 = []