summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
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:14:13 +0100
commit9ed748a542b520c1cb763d981969233c0f5efd4e (patch)
tree516368010090aeb8a6f729495d4eb71f4d3b333d /bitbake/lib
parent66b8c16659ecfff41deea92256b10b370d4b650f (diff)
downloadpoky-9ed748a542b520c1cb763d981969233c0f5efd4e.tar.gz
bitbake: daemonize: Always print any remaning UI events at exit2.4_M2
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>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/daemonize.py2
1 files changed, 1 insertions, 1 deletions
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):
77 function() 77 function()
78 except Exception as e: 78 except Exception as e:
79 traceback.print_exc() 79 traceback.print_exc()
80 bb.event.print_ui_queue()
81 finally: 80 finally:
81 bb.event.print_ui_queue()
82 os._exit(0) 82 os._exit(0)