Commit fd1653b8 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Andrei Vagin

tty: Make params setup synchronous

It was never designed to run params in ansync mode,
and i always been against this change because async
here is too fragile.

p.s.:

I think this might be a reason for

https://github.com/checkpoint-restore/criu/issues/647Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@gmail.com>
parent 79fbdb92
...@@ -894,7 +894,7 @@ static int restore_tty_params(int fd, struct tty_info *info) ...@@ -894,7 +894,7 @@ static int restore_tty_params(int fd, struct tty_info *info)
} }
} }
return userns_call(do_restore_tty_parms, UNS_ASYNC, &p, sizeof(p), fd); return userns_call(do_restore_tty_parms, 0, &p, sizeof(p), fd);
} }
/* /*
......
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