Reinitialize monitor upon reconnect, by Anthony Liguori.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2300 c046a42c-6fe2-441c-8c8c-71466251a162
diff --git a/console.c b/console.c
index f039dfc..cd30235 100644
--- a/console.c
+++ b/console.c
@@ -1086,5 +1086,7 @@
     s->t_attrib = s->t_attrib_default;
     text_console_resize(s);
 
+    qemu_chr_reset(chr);
+
     return chr;
 }