summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/server/process.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py
index a3078a873d..cc58c720a2 100644
--- a/bitbake/lib/bb/server/process.py
+++ b/bitbake/lib/bb/server/process.py
@@ -222,11 +222,10 @@ class ProcessEventQueue(multiprocessing.queues.Queue):
222 222
223 def waitEvent(self, timeout): 223 def waitEvent(self, timeout):
224 if self.exit: 224 if self.exit:
225 sys.exit(1) 225 return self.getEvent()
226 try: 226 try:
227 if not self.server.is_alive(): 227 if not self.server.is_alive():
228 self.setexit() 228 return self.getEvent()
229 return None
230 return self.get(True, timeout) 229 return self.get(True, timeout)
231 except Empty: 230 except Empty:
232 return None 231 return None
@@ -235,9 +234,10 @@ class ProcessEventQueue(multiprocessing.queues.Queue):
235 try: 234 try:
236 if not self.server.is_alive(): 235 if not self.server.is_alive():
237 self.setexit() 236 self.setexit()
238 return None
239 return self.get(False) 237 return self.get(False)
240 except Empty: 238 except Empty:
239 if self.exit:
240 sys.exit(1)
241 return None 241 return None
242 242
243 243