Mailing List Archive

ptsname() is applied to the master fd, not the slave fd.
# HG changeset patch
# User kaf24@firebug.cl.cam.ac.uk
# Node ID 310746cf9f27512be6520cf60c083e1726a26106
# Parent 5358eceec5ea41d3dabf52eb33ac189393f4bb92
ptsname() is applied to the master fd, not the slave fd.

Signed-off-by: Keir Fraser <keir@xensource.com>

diff -r 5358eceec5ea -r 310746cf9f27 tools/ioemu/vl.c
--- a/tools/ioemu/vl.c Thu Dec 1 03:40:26 2005
+++ b/tools/ioemu/vl.c Thu Dec 1 10:10:40 2005
@@ -1227,8 +1227,8 @@
cfmakeraw(&term);
tcsetattr(slave_fd, TCSAFLUSH, &term);

- fprintf(stderr, "char device redirected to %s\n", ptsname(slave_fd));
- store_console_dev(domid, ptsname(slave_fd));
+ fprintf(stderr, "char device redirected to %s\n", ptsname(master_fd));
+ store_console_dev(domid, ptsname(master_fd));

return qemu_chr_open_fd(master_fd, master_fd);
}

_______________________________________________
Xen-changelog mailing list
Xen-changelog@lists.xensource.com
http://lists.xensource.com/xen-changelog