[bitbake-devel] [PATCH] bitbake/process.py: Ensure queued UI events are queued right before we add our own handler
Richard Purdie
richard.purdie at linuxfoundation.org
Wed Jul 6 18:08:33 UTC 2011
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
diff --git a/bitbake/lib/bb/server/process.py
b/bitbake/lib/bb/server/process.py
index 3a0706c..ba91336 100644
--- a/bitbake/lib/bb/server/process.py
+++ b/bitbake/lib/bb/server/process.py
@@ -83,15 +83,14 @@ class ProcessServer(Process):
self.keep_running = Event()
self.keep_running.set()
- for event in bb.event.ui_queue:
- self.event_queue.put(event)
-
def register_idle_function(self, function, data):
"""Register a function to be called while the server is idle"""
assert hasattr(function, '__call__')
self._idlefunctions[function] = data
def run(self):
+ for event in bb.event.ui_queue:
+ self.event_queue.put(event)
self.event_handle = bb.event.register_UIHhandler(self)
bb.cooker.server_main(self.cooker, self.main)
More information about the bitbake-devel
mailing list