diff options
Diffstat (limited to 'arch/um/drivers/chan_user.c')
-rw-r--r-- | arch/um/drivers/chan_user.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/um/drivers/chan_user.c b/arch/um/drivers/chan_user.c index 13f0bf852b2a..5d1289d33410 100644 --- a/arch/um/drivers/chan_user.c +++ b/arch/um/drivers/chan_user.c | |||
@@ -170,7 +170,13 @@ static int winch_tramp(int fd, struct tty_struct *tty, int *fd_out) | |||
170 | err = -EINVAL; | 170 | err = -EINVAL; |
171 | goto out_close; | 171 | goto out_close; |
172 | } | 172 | } |
173 | return err ; | 173 | |
174 | if (os_set_fd_block(*fd_out, 0)) { | ||
175 | printk("winch_tramp: failed to set thread_fd non-blocking.\n"); | ||
176 | goto out_close; | ||
177 | } | ||
178 | |||
179 | return err; | ||
174 | 180 | ||
175 | out_close: | 181 | out_close: |
176 | os_close_file(fds[1]); | 182 | os_close_file(fds[1]); |