[oe-commits] [bitbake] 01/01: daemonize: Always print any remaning UI events at exit

git at git.openembedded.org git at git.openembedded.org
Thu Aug 3 10:15:12 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository bitbake.

commit 76c4f2c20216719736766e8ae7d089ccd061b71b
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Wed Aug 2 06:37:01 2017 +0100

    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 at linuxfoundation.org>
---
 lib/bb/daemonize.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bb/daemonize.py b/lib/bb/daemonize.py
index a5a9d86..8300d1d 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)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list