[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xenconsoled: make guest console visible on NetBSD dom0
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1235128391 0 # Node ID b749d0aba17f71ab58a51bdfc62d0fb71f70fa27 # Parent 07e65892fc8eba020f2596a97956aaee30c717a1 xenconsoled: make guest console visible on NetBSD dom0 After openpty(), slave_fd must be closed or guest console output goes to the slave while select() in xen console client listens on the master. Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx> --- tools/console/daemon/io.c | 8 ++++++++ 1 files changed, 8 insertions(+) diff -r 07e65892fc8e -r b749d0aba17f tools/console/daemon/io.c --- a/tools/console/daemon/io.c Fri Feb 20 11:11:40 2009 +0000 +++ b/tools/console/daemon/io.c Fri Feb 20 11:13:11 2009 +0000 @@ -420,6 +420,14 @@ static int domain_create_tty(struct doma goto out; } + /* Close the slave fd or the guest console output disappears, + * otherwise. + */ + if (dom->slave_fd != -1) { + close(dom->slave_fd); + dom->slave_fd = -1; + } + if (dom->use_consolepath) { success = asprintf(&path, "%s/limit", dom->conspath) != -1; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |