summaryrefslogtreecommitdiffstats
path: root/lib/bb/server/process.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-06 18:02:00 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-07 10:57:05 +0100
commitc7a9ef70ba91d47d53074e8d78cbc52f396144a7 (patch)
treec1d929ae2ced27995dc1ac04f62fc14565ea6b80 /lib/bb/server/process.py
parent54fe91fe96aaae47c40077c5f441c79da71da777 (diff)
downloadopenembedded-core-contrib-c7a9ef70ba91d47d53074e8d78cbc52f396144a7.tar.gz
bitbake/process.py: Ensure queued UI events are queued right before we add our own handler
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/server/process.py')
-rw-r--r--lib/bb/server/process.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py
index 3a0706c498..ba9133639d 100644
--- a/lib/bb/server/process.py
+++ b/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)