[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] ptsname() is applied to the master fd, not the slave fd.



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

Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>

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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.