ia64/xen-unstable

changeset 8163:310746cf9f27

ptsname() is applied to the master fd, not the slave fd.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu Dec 01 11:10:40 2005 +0100 (2005-12-01)
parents 5358eceec5ea
children c55ac1858bbc
files tools/ioemu/vl.c
line diff
     1.1 --- a/tools/ioemu/vl.c	Thu Dec 01 03:40:26 2005 +0000
     1.2 +++ b/tools/ioemu/vl.c	Thu Dec 01 11:10:40 2005 +0100
     1.3 @@ -1227,8 +1227,8 @@ CharDriverState *qemu_chr_open_pty(void)
     1.4      cfmakeraw(&term);
     1.5      tcsetattr(slave_fd, TCSAFLUSH, &term);
     1.6  
     1.7 -    fprintf(stderr, "char device redirected to %s\n", ptsname(slave_fd));
     1.8 -    store_console_dev(domid, ptsname(slave_fd));
     1.9 +    fprintf(stderr, "char device redirected to %s\n", ptsname(master_fd));
    1.10 +    store_console_dev(domid, ptsname(master_fd));
    1.11  
    1.12      return qemu_chr_open_fd(master_fd, master_fd);
    1.13  }