WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] ptsname() is applied to the master fd, not the slave fd.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 01 Dec 2005 12:32:06 +0000
Delivery-date: Thu, 01 Dec 2005 12:32:17 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] ptsname() is applied to the master fd, not the slave fd., Xen patchbot -unstable <=