summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/server
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-04 17:56:58 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-06 17:40:01 +0000
commit7f556c68619377224560066e92a88469919b335b (patch)
tree403455e3a38dc2bf8bbea8314033128c912b1a5b /bitbake/lib/bb/server
parent9043034da53658ab2db67da28699e8a01bfe5206 (diff)
downloadpoky-7f556c68619377224560066e92a88469919b335b.tar.gz
bitbake: cooker: Clean up inotify idle handler
We no longer need to abstract the inotify callback handler, remove the abstraction and simplify/clean up the code. (Bitbake rev: af4ccab8acc49e91bf7647f209d69f4858618466) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/server')
-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