aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGregor <dan.mcgregor@usask.ca>2014-08-29 13:46:18 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-09-01 08:50:58 +0100
commit418358a595c75f45b8d15160ec42bbe569562d91 (patch)
treedbdf8c7f85c966269cf9c76724bc932b7c5cf0ae
parenteed9ae5c2a2bd7567e12ae9a4f02a5a966a1e1a3 (diff)
downloadbitbake-418358a595c75f45b8d15160ec42bbe569562d91.tar.gz
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. Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/ui/knotty.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py
index bb6d4cbbe..307886d78 100644
--- a/lib/bb/ui/knotty.py
+++ b/lib/bb/ui/knotty.py
@@ -507,7 +507,7 @@ def main(server, eventHandler, params, tf = TerminalFilter):
termfilter.clearFooter()
# ignore interrupted io
if ioerror.args[0] == 4:
- pass
+ continue
sys.stderr.write(str(ioerror))
if not params.observe_only:
_, error = server.runCommand(["stateForceShutdown"])