aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2011-08-18 15:08:19 -0400
committerRichard Weinberger <richard@nod.at>2011-11-02 09:15:11 -0400
commit17e052093bcd21eaf9eb6e792cd76fdc4f0e3505 (patch)
tree34e641a73c6b128396b4114f25f8d8133563e53d /arch/um
parent0a9e70b1cd0f7ee82a65d19edfcd31664ef65f69 (diff)
um: take register_winch_irq() into the caller of is_skas_winch()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um')
-rw-r--r--arch/um/drivers/chan_user.c7
-rw-r--r--arch/um/os-Linux/skas/process.c6
2 files changed, 7 insertions, 6 deletions
diff --git a/arch/um/drivers/chan_user.c b/arch/um/drivers/chan_user.c
index 7ed06a7399d5..f180813ce2c7 100644
--- a/arch/um/drivers/chan_user.c
+++ b/arch/um/drivers/chan_user.c
@@ -281,7 +281,12 @@ void register_winch(int fd, struct tty_struct *tty)
281 return; 281 return;
282 282
283 pid = tcgetpgrp(fd); 283 pid = tcgetpgrp(fd);
284 if (!is_skas_winch(pid, fd, tty) && (pid == -1)) { 284 if (is_skas_winch(pid, fd, tty)) {
285 register_winch_irq(-1, fd, -1, tty, 0);
286 return;
287 }
288
289 if (pid == -1) {
285 thread = winch_tramp(fd, tty, &thread_fd, &stack); 290 thread = winch_tramp(fd, tty, &thread_fd, &stack);
286 if (thread < 0) 291 if (thread < 0)
287 return; 292 return;
diff --git a/arch/um/os-Linux/skas/process.c b/arch/um/os-Linux/skas/process.c
index 30f1bb43a230..29e4ab7eb369 100644
--- a/arch/um/os-Linux/skas/process.c
+++ b/arch/um/os-Linux/skas/process.c
@@ -26,11 +26,7 @@
26 26
27int is_skas_winch(int pid, int fd, void *data) 27int is_skas_winch(int pid, int fd, void *data)
28{ 28{
29 if (pid != getpgrp()) 29 return pid == getpgrp();
30 return 0;
31
32 register_winch_irq(-1, fd, -1, data, 0);
33 return 1;
34} 30}
35 31
36static int ptrace_dump_regs(int pid) 32static int ptrace_dump_regs(int pid)