commit | 911515b339109d4bdf992441d5efdf4a6f885f95 | [log] [tgz] |
---|---|---|
author | Pali Rohár <pali@kernel.org> | Fri Sep 24 23:07:10 2021 +0200 |
committer | Stefan Roese <sr@denx.de> | Fri Oct 01 11:07:13 2021 +0200 |
tree | b25f03ec57f132cd5807e33a0a57d445de2df3c4 | |
parent | 24a471bc4bac8aa3a52ad7fa209494b6bc38e58d [diff] |
tools: kwboot: Disable non-blocking mode The kwboot utility does not handle EAGAIN / EBUSY errors, it expects blocking mode on tty - it uses select() to check if data is available. Disable non-blocking mode by clearing O_NDELAY flag which was set by open(). We can't just take O_NDELAY from open(), because it is required there until the CLOCAL flag is set on the tty. Signed-off-by: Pali Rohár <pali@kernel.org> Signed-off-by: Marek Behún <marek.behun@nic.cz>