From 255b79dc10fd1421721b51aedd7164a3534bc7d0 Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Fri, 30 Nov 2007 16:45:21 +0000 Subject: [PATCH] Fix a crash with monitor input arriving before readline_start has been called --- monitor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/monitor.c b/monitor.c index 4a9e8bbfae..dd85f847d7 100644 --- a/monitor.c +++ b/monitor.c @@ -2583,6 +2583,8 @@ void monitor_init(CharDriverState *hd, int show_banner) hide_banner = !show_banner; qemu_chr_add_handlers(hd, term_can_read, term_read, term_event, NULL); + + readline_start("", 0, monitor_handle_command1, NULL); } /* XXX: use threads ? */ -- 2.11.4.GIT