commit | ab7e8a133df1fb0d57edb20527bd9e030cd23837 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Jul 03 12:10:31 2018 -0400 |
committer | Stefan Roese <sr@denx.de> | Tue Aug 07 10:53:52 2018 +0200 |
tree | f372479f23f3d10e0ee0c68da4be7c2ea6cc567b | |
parent | e8f8a7c9927858e84a0ed99abe7d4b501416b7af [diff] |
tools: kwboot: properly quit when read() returns 0 When kwboot is attached to a terminal which disappears such as one connected via an unplugged USB cable, read() returns 0, making kwboot loop until a key is pressed in the terminal. The only case where read() may return 0 here is when the terminal is closed anyway, so let's properly handle this one and report is similar to other errors. Signed-off-by: Willy Tarreau <w@1wt.eu> Signed-off-by: Stefan Roese <sr@denx.de>