Commit 5fc5b42a authored by Jiri Slaby's avatar Jiri Slaby Committed by Linus Torvalds
Browse files

tty: remove sleep_on

Use wait_event instead of sleep_on in tty_block_til_ready.

Wait for ASYNC_CLOSING flag being 0.
Signed-off-by: default avatarJiri Slaby <>
Signed-off-by: default avatarLinus Torvalds <>
parent 4db2299d
......@@ -198,7 +198,8 @@ int tty_port_block_til_ready(struct tty_port *port,
/* block if port is in the process of being closed */
if (tty_hung_up_p(filp) || port->flags & ASYNC_CLOSING) {
!(port->flags & ASYNC_CLOSING));
if (port->flags & ASYNC_HUP_NOTIFY)
return -EAGAIN;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment