diff -r f1fb228b43ac tools/ioemu/vl.c --- a/tools/ioemu/vl.c Mon Aug 31 09:45:27 2009 +0100 +++ b/tools/ioemu/vl.c Mon Oct 26 13:00:11 2009 +0100 @@ -1914,8 +1914,11 @@ static CharDriverState *qemu_chr_open_pt } /* Set raw attributes on the pty. */ + if (tcgetattr(master_fd, &tty) < 0) + perror("tcgetattr failed"); cfmakeraw(&tty); - tcsetattr(slave_fd, TCSAFLUSH, &tty); + if (tcsetattr(slave_fd, TCSAFLUSH, &tty) < 0) + perror("tcsetattr failed"); fprintf(stderr, "char device redirected to %s\n", ptsname(master_fd));