debuggers.hg
changeset 16685:d0052f37363c
ioemu: Do not close slave half of a pty.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Thu Dec 20 10:35:22 2007 +0000 (2007-12-20) |
parents | f12da56acc57 |
children | 6730dfe7ec69 |
files | tools/ioemu/vl.c |
line diff
1.1 --- a/tools/ioemu/vl.c Wed Dec 19 15:56:10 2007 +0000 1.2 +++ b/tools/ioemu/vl.c Thu Dec 20 10:35:22 2007 +0000 1.3 @@ -1876,8 +1876,6 @@ static CharDriverState *qemu_chr_open_pt 1.4 /* Set raw attributes on the pty. */ 1.5 cfmakeraw(&tty); 1.6 tcsetattr(slave_fd, TCSAFLUSH, &tty); 1.7 - 1.8 - close(slave_fd); 1.9 1.10 fprintf(stderr, "char device redirected to %s\n", ptsname(master_fd)); 1.11