]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: kwboot: Handle EINTR in kwboot_tty_recv()
authorPali Rohár <pali@kernel.org>
Tue, 25 Jan 2022 17:13:11 +0000 (18:13 +0100)
committerStefan Roese <sr@denx.de>
Mon, 31 Jan 2022 09:23:38 +0000 (10:23 +0100)
commit91fb095c0dc8390bee2442e7b635e2a93bb31c4a
treeb8bac2f8222eb3aa96eb1845b648de4eae07ce9a
parent6ba7d63e018c6d777c9fe7afdf9719fcb220c31a
tools: kwboot: Handle EINTR in kwboot_tty_recv()

The select() and read() syscalls may be interrupted. Handle EINTR and
retry them.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
tools/kwboot.c