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/bb | |
parent | cc4c02a268e92839f5ebb36cbf7a6b71082e09c4 (diff) | |
download | poky-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/bb')
-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): | |||
450 | return_value += 1 | 450 | return_value += 1 |
451 | 451 | ||
452 | except EnvironmentError as ioerror: | 452 | except EnvironmentError as ioerror: |
453 | # ignore interrupted io | 453 | logger.warning("EnvironmentError: %s" % ioerror) |
454 | if ioerror.args[0] == 4: | 454 | # ignore interrupted io system calls |
455 | pass | 455 | if ioerror.args[0] == 4: # errno 4 is EINTR |
456 | logger.warning("Skipped EINTR: %s" % ioerror) | ||
457 | else: | ||
458 | raise | ||
456 | except KeyboardInterrupt: | 459 | except KeyboardInterrupt: |
457 | if params.observe_only: | 460 | if params.observe_only: |
458 | print("\nKeyboard Interrupt, exiting observer...") | 461 | print("\nKeyboard Interrupt, exiting observer...") |