[bitbake-devel] [PATCH] knotty: Remove latency when exiting
Richard Purdie
richard.purdie at linuxfoundation.org
Mon Mar 10 00:57:11 UTC 2014
There is no point in waiting 0.25s for when we should be processing
the shutdown. This simply reordering removes latency from the
bitbake command.
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index 14bdb37..55cf507 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -310,11 +310,11 @@ def main(server, eventHandler, params, tf = TerminalFilter):
try:
event = eventHandler.waitEvent(0)
if event is None:
+ if main.shutdown > 1:
+ break
termfilter.updateFooter()
event = eventHandler.waitEvent(0.25)
if event is None:
- if main.shutdown > 1:
- break
continue
helper.eventHandler(event)
if isinstance(event, bb.runqueue.runQueueExitWait):
More information about the bitbake-devel
mailing list