diff -r 7fe15a0ee3d8 tools/console/daemon/io.c --- a/tools/console/daemon/io.c Tue Feb 17 11:20:18 2009 +0000 +++ b/tools/console/daemon/io.c Mon Feb 19 16:42:40 2009 +0100 @@ -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;