summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/server/process.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/server/process.py')
-rw-r--r--bitbake/lib/bb/server/process.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py
index b5f6faf6fb..81e5229c9d 100644
--- a/bitbake/lib/bb/server/process.py
+++ b/bitbake/lib/bb/server/process.py
@@ -157,8 +157,7 @@ class ProcessServer():
157 def wait_for_idle(self, timeout=30): 157 def wait_for_idle(self, timeout=30):
158 # Wait for the idle loop to have cleared 158 # Wait for the idle loop to have cleared
159 with self.idle_cond: 159 with self.idle_cond:
160 # FIXME - the 1 is the inotify processing in cooker which always runs 160 self.idle_cond.wait_for(lambda: len(self._idlefuns) == 0, timeout)
161 self.idle_cond.wait_for(lambda: len(self._idlefuns) <= 1, timeout)
162 161
163 def main(self): 162 def main(self):
164 self.cooker.pre_serve() 163 self.cooker.pre_serve()
@@ -387,6 +386,8 @@ class ProcessServer():
387 nextsleep = 0.1 386 nextsleep = 0.1
388 fds = [] 387 fds = []
389 388
389 self.cooker.process_inotify_updates()
390
390 with bb.utils.lock_timeout(self._idlefuncsLock): 391 with bb.utils.lock_timeout(self._idlefuncsLock):
391 items = list(self._idlefuns.items()) 392 items = list(self._idlefuns.items())
392 393