summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-07-02 11:27:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-07-03 17:00:57 +0100
commit0a0cc5ff2ee02d50b18a67f329a4e46b3e9d5a00 (patch)
tree1a0a136f79f57b5037c24c29384e6735e07c37d3 /bitbake
parent5fc79300641429c4d78e07e22badc2c8f76e09bd (diff)
downloadpoky-0a0cc5ff2ee02d50b18a67f329a4e46b3e9d5a00.tar.gz
bitbake: event: Clear ui_queue after handling it
(Bitbake rev: 55631da1336589e583e8341a655179f7714ab3fe) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/event.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py
index 7cbb5ca47e..248fc1a6f8 100644
--- a/bitbake/lib/bb/event.py
+++ b/bitbake/lib/bb/event.py
@@ -124,6 +124,7 @@ def fire_class_handlers(event, d):
124ui_queue = [] 124ui_queue = []
125@atexit.register 125@atexit.register
126def print_ui_queue(): 126def print_ui_queue():
127 global ui_queue
127 """If we're exiting before a UI has been spawned, display any queued 128 """If we're exiting before a UI has been spawned, display any queued
128 LogRecords to the console.""" 129 LogRecords to the console."""
129 logger = logging.getLogger("BitBake") 130 logger = logging.getLogger("BitBake")
@@ -168,6 +169,7 @@ def print_ui_queue():
168 logger.removeHandler(stderr) 169 logger.removeHandler(stderr)
169 else: 170 else:
170 logger.removeHandler(stdout) 171 logger.removeHandler(stdout)
172 ui_queue = []
171 173
172def fire_ui_handlers(event, d): 174def fire_ui_handlers(event, d):
173 global _thread_lock 175 global _thread_lock