diff options
Diffstat (limited to 'arch/um/drivers/chan_user.c')
-rw-r--r-- | arch/um/drivers/chan_user.c | 7 |
1 files changed, 6 insertions, 1 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; |