bitbake: knotty: ignore interrupted system calls
authorDan McGregor <dan.mcgregor@usask.ca>
Fri, 29 Aug 2014 19:46:18 +0000 (13:46 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 1 Sep 2014 07:51:33 +0000 (08:51 +0100)
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>
bitbake/lib/bb/ui/knotty.py

index bb6d4cb..307886d 100644 (file)
@@ -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"])