summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-09-11 23:17:43 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-09-12 23:55:29 +0100
commit28949d3f80de33c1c034d877691308c301e50bbd (patch)
treed22819403228e154241a1ea8ae48d842a21c476a /bitbake/lib/bb/cooker.py
parent74afde0058e5ca6f27e645013e8a71ce297b23be (diff)
downloadpoky-28949d3f80de33c1c034d877691308c301e50bbd.tar.gz
bitbake: process/cooker: Improve readypipe handling
Issues in start are not being correctly detected by the current readypipe code. Change it to use specific "ready" or "fail" messages to correctly determine the correct failure mode and avoid bitbake seeming to hang (it does currently timeout eventually). [YOCTO #12062] (Bitbake rev: 60d4791e3dd05729d2a2adf6f3b203c80d466a73) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 7d040dcd88..8fe36eba1e 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -165,7 +165,7 @@ class BBCooker:
165 Manages one bitbake build run 165 Manages one bitbake build run
166 """ 166 """
167 167
168 def __init__(self, configuration, featureSet=None, readypipe=None): 168 def __init__(self, configuration, featureSet=None):
169 self.recipecaches = None 169 self.recipecaches = None
170 self.skiplist = {} 170 self.skiplist = {}
171 self.featureset = CookerFeatures() 171 self.featureset = CookerFeatures()
@@ -233,10 +233,6 @@ class BBCooker:
233 # Let SIGHUP exit as SIGTERM 233 # Let SIGHUP exit as SIGTERM
234 signal.signal(signal.SIGHUP, self.sigterm_exception) 234 signal.signal(signal.SIGHUP, self.sigterm_exception)
235 235
236 if readypipe:
237 os.write(readypipe, b"ready")
238 os.close(readypipe)
239
240 def process_inotify_updates(self): 236 def process_inotify_updates(self):
241 for n in [self.confignotifier, self.notifier]: 237 for n in [self.confignotifier, self.notifier]:
242 if n.check_events(timeout=0): 238 if n.check_events(timeout=0):