diff options
Diffstat (limited to 'arch/um/drivers/chan_user.c')
-rw-r--r-- | arch/um/drivers/chan_user.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/um/drivers/chan_user.c b/arch/um/drivers/chan_user.c index cfeb3f4a44af..f180813ce2c7 100644 --- a/arch/um/drivers/chan_user.c +++ b/arch/um/drivers/chan_user.c | |||
@@ -11,10 +11,8 @@ | |||
11 | #include <termios.h> | 11 | #include <termios.h> |
12 | #include <sys/ioctl.h> | 12 | #include <sys/ioctl.h> |
13 | #include "chan_user.h" | 13 | #include "chan_user.h" |
14 | #include "kern_constants.h" | ||
15 | #include "os.h" | 14 | #include "os.h" |
16 | #include "um_malloc.h" | 15 | #include "um_malloc.h" |
17 | #include "user.h" | ||
18 | 16 | ||
19 | void generic_close(int fd, void *unused) | 17 | void generic_close(int fd, void *unused) |
20 | { | 18 | { |
@@ -283,7 +281,12 @@ void register_winch(int fd, struct tty_struct *tty) | |||
283 | return; | 281 | return; |
284 | 282 | ||
285 | pid = tcgetpgrp(fd); | 283 | pid = tcgetpgrp(fd); |
286 | 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) { | ||
287 | thread = winch_tramp(fd, tty, &thread_fd, &stack); | 290 | thread = winch_tramp(fd, tty, &thread_fd, &stack); |
288 | if (thread < 0) | 291 | if (thread < 0) |
289 | return; | 292 | return; |