summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/server
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-07 15:41:41 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-08 13:29:54 +0100
commit35846a39614815032e4db0d2f26709983a9802d7 (patch)
tree093fee55cef231d49694405925ecfbc1bbb3464f /bitbake/lib/bb/server
parent9245c3b87fd56cd157de8f3e8ba1032a3a6be286 (diff)
downloadpoky-35846a39614815032e4db0d2f26709983a9802d7.tar.gz
bitbake: event: Queue offline events for the UI
Messages printed when no UI is connected (e.g. memres) are currently lost. Use the existing queue mechanism to queue these until a UI attaches, then replay them. This isn't ideal but better than the current situation of losing them entirely. (Bitbake rev: cb241fb8544dfb05646dbae1a1b04e17878a466c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/server')
-rw-r--r--bitbake/lib/bb/server/process.py2
-rw-r--r--bitbake/lib/bb/server/xmlrpc.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py
index 9ca2b6958d..f8d6767855 100644
--- a/bitbake/lib/bb/server/process.py
+++ b/bitbake/lib/bb/server/process.py
@@ -137,7 +137,7 @@ class ProcessServer(Process, BaseImplServer):
137 logger.exception('Running command %s', command) 137 logger.exception('Running command %s', command)
138 138
139 self.event_queue.close() 139 self.event_queue.close()
140 bb.event.unregister_UIHhandler(self.event_handle.value) 140 bb.event.unregister_UIHhandler(self.event_handle.value, True)
141 self.command_channel.close() 141 self.command_channel.close()
142 self.cooker.shutdown(True) 142 self.cooker.shutdown(True)
143 self.quitout.close() 143 self.quitout.close()
diff --git a/bitbake/lib/bb/server/xmlrpc.py b/bitbake/lib/bb/server/xmlrpc.py
index a06007f5ac..d0f5a6d6da 100644
--- a/bitbake/lib/bb/server/xmlrpc.py
+++ b/bitbake/lib/bb/server/xmlrpc.py
@@ -125,7 +125,7 @@ class BitBakeServerCommands():
125 """ 125 """
126 Unregister a remote UI Event Handler 126 Unregister a remote UI Event Handler
127 """ 127 """
128 return bb.event.unregister_UIHhandler(handlerNum) 128 return bb.event.unregister_UIHhandler(handlerNum, True)
129 129
130 def runCommand(self, command): 130 def runCommand(self, command):
131 """ 131 """