summaryrefslogtreecommitdiff
path: root/include/compiler.h
diff options
context:
space:
mode:
authorWilly Tarreau <w@1wt.eu>2018-07-03 12:10:31 -0400
committerStefan Roese <sr@denx.de>2018-08-07 10:53:52 +0200
commit4469bd7b53acea642915e2bf0e3cb5dfa378a47e (patch)
treef372479f23f3d10e0ee0c68da4be7c2ea6cc567b /include/compiler.h
parent3475a71d4e7696865ebc710e56621b04d56a621e (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>
Diffstat (limited to 'include/compiler.h')
0 files changed, 0 insertions, 0 deletions