diff options
Diffstat (limited to 'arch/um/os-Linux/sigio.c')
-rw-r--r-- | arch/um/os-Linux/sigio.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/um/os-Linux/sigio.c b/arch/um/os-Linux/sigio.c index f77ce3d6f7cc..8ccf6a36f1c6 100644 --- a/arch/um/os-Linux/sigio.c +++ b/arch/um/os-Linux/sigio.c | |||
@@ -461,15 +461,16 @@ static void tty_output(int master, int slave) | |||
461 | 461 | ||
462 | while(os_write_file(master, buf, sizeof(buf)) > 0) ; | 462 | while(os_write_file(master, buf, sizeof(buf)) > 0) ; |
463 | if(errno != EAGAIN) | 463 | if(errno != EAGAIN) |
464 | panic("check_sigio : write failed, errno = %d\n", errno); | 464 | panic("tty_output : write failed, errno = %d\n", errno); |
465 | while(((n = os_read_file(slave, buf, sizeof(buf))) > 0) && !got_sigio) ; | 465 | while(((n = os_read_file(slave, buf, sizeof(buf))) > 0) && !got_sigio) ; |
466 | 466 | ||
467 | if(got_sigio){ | 467 | if(got_sigio){ |
468 | printk("Yes\n"); | 468 | printk("Yes\n"); |
469 | pty_output_sigio = 1; | 469 | pty_output_sigio = 1; |
470 | } | 470 | } |
471 | else if(n == -EAGAIN) printk("No, enabling workaround\n"); | 471 | else if(n == -EAGAIN) |
472 | else panic("check_sigio : read failed, err = %d\n", n); | 472 | printk("No, enabling workaround\n"); |
473 | else panic("tty_output : read failed, err = %d\n", n); | ||
473 | } | 474 | } |
474 | 475 | ||
475 | static void tty_close(int master, int slave) | 476 | static void tty_close(int master, int slave) |