Home
last modified time | relevance | path

Searched hist:"4469 bd7b" (Results 1 – 1 of 1) sorted by relevance

/openbmc/u-boot/tools/
H A Dkwboot.c4469bd7b 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>