Commit 17e05209 authored by Al Viro's avatar Al Viro Committed by Richard Weinberger

um: take register_winch_irq() into the caller of is_skas_winch()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 0a9e70b1
......@@ -281,7 +281,12 @@ void register_winch(int fd, struct tty_struct *tty)
return;
pid = tcgetpgrp(fd);
if (!is_skas_winch(pid, fd, tty) && (pid == -1)) {
if (is_skas_winch(pid, fd, tty)) {
register_winch_irq(-1, fd, -1, tty, 0);
return;
}
if (pid == -1) {
thread = winch_tramp(fd, tty, &thread_fd, &stack);
if (thread < 0)
return;
......
......@@ -26,11 +26,7 @@
int is_skas_winch(int pid, int fd, void *data)
{
if (pid != getpgrp())
return 0;
register_winch_irq(-1, fd, -1, data, 0);
return 1;
return pid == getpgrp();
}
static int ptrace_dump_regs(int pid)
......
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