]> git.baikalelectronics.ru Git - uboot.git/commit
sandbox: Restore blocking I/O on exit
authorSimon Glass <sjg@chromium.org>
Mon, 1 Oct 2018 17:55:20 +0000 (11:55 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 9 Oct 2018 10:40:27 +0000 (04:40 -0600)
commit070bab85006a7b458975b026e5a8f42e39bfcccb
tree7ee723f2dd9534c15062ae2e1bc23218787fd3f9
parent6d48eb6240af4e9b259c000fe81d20665c38ae6c
sandbox: Restore blocking I/O on exit

At present sandbox sets non-blocking I/O as soon as any input is read
from the terminal. However it does not restore the previous state on
exit. Fix this and drop the old os_read_no_block() function.

This means that we always enable blocking I/O in sandbox (if input is a
terminal) whereas previously it would only happen on the first call to
tstc() or getc(). However, the difference is likely not important.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/os.c
drivers/serial/sandbox.c
include/os.h