summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/server
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/server')
-rw-r--r--bitbake/lib/bb/server/process.py15
1 files changed, 3 insertions, 12 deletions
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py
index 3530bdc07e..e4b9d96234 100644
--- a/bitbake/lib/bb/server/process.py
+++ b/bitbake/lib/bb/server/process.py
@@ -303,19 +303,10 @@ class ServerCommunicator():
303 self.recv = recv 303 self.recv = recv
304 304
305 def runCommand(self, command): 305 def runCommand(self, command):
306
307 self.connection.send(command) 306 self.connection.send(command)
308 while True: 307 if not self.recv.poll(5):
309 # don't let the user ctrl-c while we're waiting for a response 308 raise ProcessTimeout("Timeout while waiting for a reply from the bitbake server")
310 try: 309 return self.recv.get()
311 for idx in range(0,4): # 0, 1, 2, 3
312 if self.recv.poll(1):
313 return self.recv.get()
314 else:
315 bb.note("Timeout while attempting to communicate with bitbake server, retrying...")
316 raise ProcessTimeout("Gave up; Too many tries: timeout while attempting to communicate with bitbake server")
317 except KeyboardInterrupt:
318 pass
319 310
320 def updateFeatureSet(self, featureset): 311 def updateFeatureSet(self, featureset):
321 _, error = self.runCommand(["setFeatures", featureset]) 312 _, error = self.runCommand(["setFeatures", featureset])