Searched hist:"4469 bd7b53acea642915e2bf0e3cb5dfa378a47e" (Results 1 – 1 of 1) sorted by relevance
/openbmc/u-boot/tools/ |
H A D | kwboot.c | diff 4469bd7b53acea642915e2bf0e3cb5dfa378a47e Tue Jul 03 11:10:31 CDT 2018 Willy Tarreau <w@1wt.eu> 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>
|