diff options
author | Pali Rohár <pali@kernel.org> | 2021-09-24 23:07:10 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2021-10-01 11:07:13 +0200 |
commit | 911515b339109d4bdf992441d5efdf4a6f885f95 (patch) | |
tree | b25f03ec57f132cd5807e33a0a57d445de2df3c4 /fs/btrfs/compression.c | |
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>
Diffstat (limited to 'fs/btrfs/compression.c')
0 files changed, 0 insertions, 0 deletions