diff options
author | Dan McGregor <dan.mcgregor@usask.ca> | 2014-08-29 13:46:18 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-09-01 08:51:33 +0100 |
commit | 50a8400b725efd32549ccd36a2365da0edf37ef0 (patch) | |
tree | 2320611ec75f1edf62b6152b3f7554d89a3eea82 /bitbake/lib/bb/ui/knotty.py | |
parent | 372c9d144e87ab5f360c9763101916fbcb94e469 (diff) | |
download | poky-50a8400b725efd32549ccd36a2365da0edf37ef0.tar.gz |
bitbake: knotty: ignore interrupted system calls
With the improved exception handling added in an earlier commit bitbake
now stops when recieving a SIGWINCH. This happens frequently when
disconnecting and reconnecting tmux sessions and bitbake didn't survive.
Restore old behaviour of ignoring interrupted system calls but keep
proper exception handling for other errors.
(Bitbake rev: 418358a595c75f45b8d15160ec42bbe569562d91)
Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/knotty.py')
-rw-r--r-- | bitbake/lib/bb/ui/knotty.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index bb6d4cbbec..307886d780 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py | |||
@@ -507,7 +507,7 @@ def main(server, eventHandler, params, tf = TerminalFilter): | |||
507 | termfilter.clearFooter() | 507 | termfilter.clearFooter() |
508 | # ignore interrupted io | 508 | # ignore interrupted io |
509 | if ioerror.args[0] == 4: | 509 | if ioerror.args[0] == 4: |
510 | pass | 510 | continue |
511 | sys.stderr.write(str(ioerror)) | 511 | sys.stderr.write(str(ioerror)) |
512 | if not params.observe_only: | 512 | if not params.observe_only: |
513 | _, error = server.runCommand(["stateForceShutdown"]) | 513 | _, error = server.runCommand(["stateForceShutdown"]) |