]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: daemonize: Always print any remaning UI events at exit
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 2 Aug 2017 05:37:01 +0000 (06:37 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 3 Aug 2017 10:14:13 +0000 (11:14 +0100)
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 <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/daemonize.py

index a5a9d868d0158fd761fa61c5a10530c126119061..8300d1d0f0f619f62fc41243c7377c27481f280b 100644 (file)
@@ -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)