Commit ad8efe4b6e27f0ea87d6510c11ae11377eade93d

Authored by blueswir1
1 parent 58a770f3

Fix a crash with monitor input arriving before readline_start has been called


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3749 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 0 deletions
monitor.c
... ... @@ -2583,6 +2583,8 @@ void monitor_init(CharDriverState *hd, int show_banner)
2583 2583 hide_banner = !show_banner;
2584 2584  
2585 2585 qemu_chr_add_handlers(hd, term_can_read, term_read, term_event, NULL);
  2586 +
  2587 + readline_start("", 0, monitor_handle_command1, NULL);
2586 2588 }
2587 2589  
2588 2590 /* XXX: use threads ? */
... ...