aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-02 06:37:01 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-03 11:11:35 +0100
commit76c4f2c20216719736766e8ae7d089ccd061b71b (patch)
tree204d84aadeb4ea95cb5fd845dc2d75c961736512
parente2fbe728769f09ef4178e2ef4d69a2f60ffe3ebb (diff)
downloadbitbake-contrib-76c4f2c20216719736766e8ae7d089ccd061b71b.tar.gz
daemonize: Always print any remaning UI events at exit
If there are events in the UI queue we want to print them regardless of whether we're handling an exception or something like SystemExit. This improves error messages for some other failure cases where currently no logging would get printed and leave the user confused as to what went wrong. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/daemonize.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/daemonize.py b/lib/bb/daemonize.py
index a5a9d868d..8300d1d0f 100644
--- a/lib/bb/daemonize.py
+++ b/lib/bb/daemonize.py
@@ -77,6 +77,6 @@ def createDaemon(function, logfile):
function()
except Exception as e:
traceback.print_exc()
- bb.event.print_ui_queue()
finally:
+ bb.event.print_ui_queue()
os._exit(0)