diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-09-27 16:16:54 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-30 16:52:22 +0100 |
commit | c7b55ea170aa6e87ec38cb09677f2611170cbe68 (patch) | |
tree | 891f1c67926581a3c1ed3280087d78e4090d7166 /bitbake/lib | |
parent | cc4c02a268e92839f5ebb36cbf7a6b71082e09c4 (diff) | |
download | openembedded-core-contrib-c7b55ea170aa6e87ec38cb09677f2611170cbe68.tar.gz |
bitbake: toaster: fix handling of EnvironmentError
Due to the bug in processing EnvironmentError exception,
toasterui ignores it. As EnvironmentError is a base for OSError
and IOError this means that all OSError and IOError exceptions
were silently ignored.
(Bitbake rev: c8f4ca008bf9396b0ed45d44bfe2220c82a614a9)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/ui/toasterui.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/toasterui.py b/bitbake/lib/bb/ui/toasterui.py index b5422cf2b6..569957a2ff 100644 --- a/bitbake/lib/bb/ui/toasterui.py +++ b/bitbake/lib/bb/ui/toasterui.py @@ -450,9 +450,12 @@ def main(server, eventHandler, params): return_value += 1 except EnvironmentError as ioerror: - # ignore interrupted io - if ioerror.args[0] == 4: - pass + logger.warning("EnvironmentError: %s" % ioerror) + # ignore interrupted io system calls + if ioerror.args[0] == 4: # errno 4 is EINTR + logger.warning("Skipped EINTR: %s" % ioerror) + else: + raise except KeyboardInterrupt: if params.observe_only: print("\nKeyboard Interrupt, exiting observer...") |