Skip to content
Commit 4af3e9ad authored by Simon Glass's avatar Simon Glass
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
parent 66613f5d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment