[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-3.3-testing] ioemu: Fix serial console for HVM guests
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1256564211 0 # Node ID 98fe9e75d24b886b795b7ee39c3b2935d881604f # Parent f1fb228b43acf7149c1791197266cf16a8647ae7 ioemu: Fix serial console for HVM guests Manpage states: "The cfmakeraw function sets the flags stored in the termios structure (initialized by tcgetattr) to a state ... giving a 'raw I/O path'. From: Manuel Bouyer <bouyer@xxxxxxxxxx> Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx> --- tools/ioemu/vl.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletion(-) diff -r f1fb228b43ac -r 98fe9e75d24b tools/ioemu/vl.c --- a/tools/ioemu/vl.c Mon Aug 31 09:45:27 2009 +0100 +++ b/tools/ioemu/vl.c Mon Oct 26 13:36:51 2009 +0000 @@ -1914,8 +1914,11 @@ static CharDriverState *qemu_chr_open_pt } /* Set raw attributes on the pty. */ + if (tcgetattr(master_fd, &tty) < 0) + perror("tcgetattr failed"); cfmakeraw(&tty); - tcsetattr(slave_fd, TCSAFLUSH, &tty); + if (tcsetattr(slave_fd, TCSAFLUSH, &tty) < 0) + perror("tcsetattr failed"); fprintf(stderr, "char device redirected to %s\n", ptsname(master_fd)); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |