|
From: | Anthony Liguori |
Subject: | Re: [Qemu-devel] [PATCH] QMP: Fix asynchronous events delivery |
Date: | Wed, 20 Jan 2010 08:56:34 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Lightning/1.0pre Thunderbird/3.0 |
On 01/20/2010 06:37 AM, Luiz Capitulino wrote:
Commit f039a563f200beee80cc10fd70b21ea396979dab introduces a regression as monitor_protocol_event() will return in the first user Monitor it finds in the QLIST_FOREACH() loop. The right thing to do is to only delivery an asynchronous event if the 'mon' is a QMP Monitor. The aforementioned commit was an early version, if it was applied to stable (it should) this one has to be applied there too. Signed-off-by: Luiz Capitulino<address@hidden>
Applied. Thanks. Regards, Anthony Liguori
--- monitor.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/monitor.c b/monitor.c index 938eb3b..b2b88c1 100644 --- a/monitor.c +++ b/monitor.c @@ -377,10 +377,9 @@ void monitor_protocol_event(MonitorEvent event, QObject *data) } QLIST_FOREACH(mon,&mon_list, entry) { - if (!monitor_ctrl_mode(mon)) - return; - - monitor_json_emitter(mon, QOBJECT(qmp)); + if (monitor_ctrl_mode(mon)) { + monitor_json_emitter(mon, QOBJECT(qmp)); + } } QDECREF(qmp); }
[Prev in Thread] | Current Thread | [Next in Thread] |