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>
This commit is contained in:
parent
cc4c02a268
commit
c7b55ea170
|
@ -450,9 +450,12 @@ def main(server, eventHandler, params):
|
||||||
return_value += 1
|
return_value += 1
|
||||||
|
|
||||||
except EnvironmentError as ioerror:
|
except EnvironmentError as ioerror:
|
||||||
# ignore interrupted io
|
logger.warning("EnvironmentError: %s" % ioerror)
|
||||||
if ioerror.args[0] == 4:
|
# ignore interrupted io system calls
|
||||||
pass
|
if ioerror.args[0] == 4: # errno 4 is EINTR
|
||||||
|
logger.warning("Skipped EINTR: %s" % ioerror)
|
||||||
|
else:
|
||||||
|
raise
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
if params.observe_only:
|
if params.observe_only:
|
||||||
print("\nKeyboard Interrupt, exiting observer...")
|
print("\nKeyboard Interrupt, exiting observer...")
|
||||||
|
|
Loading…
Reference in New Issue