From 9ed748a542b520c1cb763d981969233c0f5efd4e Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 2 Aug 2017 06:37:01 +0100 Subject: bitbake: 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. (Bitbake rev: 76c4f2c20216719736766e8ae7d089ccd061b71b) Signed-off-by: Richard Purdie --- bitbake/lib/bb/daemonize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbake/lib/bb/daemonize.py b/bitbake/lib/bb/daemonize.py index a5a9d868d0..8300d1d0f0 100644 --- a/bitbake/lib/bb/daemonize.py +++ b/bitbake/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) -- cgit v1.2.3-54-g00ecf