[bitbake-devel] [PATCH] knotty: ignore interrupted system calls
Dan McGregor
danismostlikely at gmail.com
Fri Aug 29 19:46:18 UTC 2014
From: Dan McGregor <dan.mcgregor at usask.ca>
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 at usask.ca>
---
lib/bb/ui/knotty.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py
index bb6d4cb..307886d 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"])
--
1.9.3
More information about the bitbake-devel
mailing list