Skip to content
Snippets Groups Projects
Commit 4469bd7b authored by Willy Tarreau's avatar Willy Tarreau Committed by Stefan Roese
Browse files

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: default avatarWilly Tarreau <w@1wt.eu>
Signed-off-by: default avatarStefan Roese <sr@denx.de>
parent 3475a71d
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment