]> git.baikalelectronics.ru Git - uboot.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)
commit56fa53bea7ccf62a1fdda9a9034ffae72b5705cb
treeb8bac2f8222eb3aa96eb1845b648de4eae07ce9a
parent13b3414885dd39403cd801b6160c71ad2f38ae29
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