提交 17e05209 编写于 作者: A Al Viro 提交者: Richard Weinberger

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

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NRichard Weinberger <richard@nod.at>
上级 0a9e70b1
...@@ -281,7 +281,12 @@ void register_winch(int fd, struct tty_struct *tty) ...@@ -281,7 +281,12 @@ void register_winch(int fd, struct tty_struct *tty)
return; return;
pid = tcgetpgrp(fd); 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); thread = winch_tramp(fd, tty, &thread_fd, &stack);
if (thread < 0) if (thread < 0)
return; return;
......
...@@ -26,11 +26,7 @@ ...@@ -26,11 +26,7 @@
int is_skas_winch(int pid, int fd, void *data) int is_skas_winch(int pid, int fd, void *data)
{ {
if (pid != getpgrp()) return pid == getpgrp();
return 0;
register_winch_irq(-1, fd, -1, data, 0);
return 1;
} }
static int ptrace_dump_regs(int pid) static int ptrace_dump_regs(int pid)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册