summaryrefslogtreecommitdiffstats
path: root/lib/bb/ui/knotty.py
diff options
context:
space:
mode:
authorBob Foerster <rfoerster@layerzero.com>2010-11-24 12:53:12 -0500
committerChris Larson <chris_larson@mentor.com>2010-12-16 10:39:27 -0700
commit65b615c6df4c3891e3c600947c3f96f802407fa4 (patch)
treecbb38412957c5be0d9a5f0c7c56d9ccd272e9c6e /lib/bb/ui/knotty.py
parent144887553097a288a76b8de78f71548d5ef9a350 (diff)
downloadbitbake-65b615c6df4c3891e3c600947c3f96f802407fa4.tar.gz
Run the server and UI in separate processes
This uses the python multiprocessing module, both to spawn the server process and for communication between the processes. Signed-off-by: Bob Foerster <robert@erafx.com> Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/ui/knotty.py')
-rw-r--r--lib/bb/ui/knotty.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py
index be0d8ce70..e5351fee7 100644
--- a/lib/bb/ui/knotty.py
+++ b/lib/bb/ui/knotty.py
@@ -22,12 +22,10 @@ from __future__ import division
import os
import sys
-import itertools
import xmlrpclib
import logging
import progressbar
import bb.msg
-from bb import ui
from bb.ui import uihelper
logger = logging.getLogger("BitBake")
@@ -99,9 +97,8 @@ def main(server, eventHandler):
return_value = 0
while True:
try:
- event = eventHandler.waitEvent(0.25)
- if event is None:
- continue
+ event = eventHandler.get()
+
helper.eventHandler(event)
if isinstance(event, bb.runqueue.runQueueExitWait):
if not shutdown: