[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] monitor: don't try to initialize json parser when m
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [PATCH] monitor: don't try to initialize json parser when monitor is HMP |
Date: |
Thu, 23 Aug 2012 13:49:51 -0500 |
Reported-by: Michael Roth <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
---
monitor.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/monitor.c b/monitor.c
index b188582..b17b1bb 100644
--- a/monitor.c
+++ b/monitor.c
@@ -4946,13 +4946,13 @@ void monitor_init(CharDriverState *chr, int flags)
qemu_chr_add_handlers(chr, monitor_can_read, monitor_control_read,
monitor_control_event, mon);
qemu_chr_fe_set_echo(chr, true);
+
+ json_message_parser_init(&mon->mc->parser, handle_qmp_command);
} else {
qemu_chr_add_handlers(chr, monitor_can_read, monitor_read,
monitor_event, mon);
}
- json_message_parser_init(&mon->mc->parser, handle_qmp_command);
-
QLIST_INSERT_HEAD(&mon_list, mon, entry);
if (!default_mon || (flags & MONITOR_IS_DEFAULT))
default_mon = mon;
--
1.7.5.4
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] monitor: don't try to initialize json parser when monitor is HMP,
Anthony Liguori <=