Thread (13 messages) flat view 13 messages, 5 authors, 2014-10-10

Re: [PATCH tty-next 14/22] tty: Remove tty_wait_until_sent_from_close()

From: One Thousand Gnomes <hidden>
Date: 2014-06-17 11:55:39
Also in: linux-serial, lkml

Before the patch, I believe tty_reopen() would return -EIO because
the TTY_CLOSING flag is set. After the patch, tty_open() blocks
on tty_lock() before calling tty_reopen(). AFAICT, this is independent
of O_NONBLOCK.
That would be a bug then. Returning -EIO is fine (if unfriendly). The
O_NONBLOCK can't block in this case though because the port could take a
long time to give up trying to dribble its bits (up to 30 seconds or so)

Alan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help