aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/drivers/chan_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/drivers/chan_user.c')
-rw-r--r--arch/um/drivers/chan_user.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/drivers/chan_user.c b/arch/um/drivers/chan_user.c
index 583b8e137c33..96f3a477c95e 100644
--- a/arch/um/drivers/chan_user.c
+++ b/arch/um/drivers/chan_user.c
@@ -168,7 +168,7 @@ static int winch_tramp(int fd, struct tty_struct *tty, int *fd_out)
168 printk("winch_tramp : failed to read synchronization byte\n"); 168 printk("winch_tramp : failed to read synchronization byte\n");
169 printk("read failed, err = %d\n", -n); 169 printk("read failed, err = %d\n", -n);
170 printk("fd %d will not support SIGWINCH\n", fd); 170 printk("fd %d will not support SIGWINCH\n", fd);
171 *fd_out = -1; 171 pid = -1;
172 } 172 }
173 return(pid); 173 return(pid);
174} 174}
@@ -186,7 +186,7 @@ void register_winch(int fd, struct tty_struct *tty)
186 if(!CHOOSE_MODE_PROC(is_tracer_winch, is_skas_winch, pid, fd, 186 if(!CHOOSE_MODE_PROC(is_tracer_winch, is_skas_winch, pid, fd,
187 tty) && (pid == -1)){ 187 tty) && (pid == -1)){
188 thread = winch_tramp(fd, tty, &thread_fd); 188 thread = winch_tramp(fd, tty, &thread_fd);
189 if(fd != -1){ 189 if(thread > 0){
190 register_winch_irq(thread_fd, fd, thread, tty); 190 register_winch_irq(thread_fd, fd, thread, tty);
191 191
192 count = os_write_file(thread_fd, &c, sizeof(c)); 192 count = os_write_file(thread_fd, &c, sizeof(c));