[libvirt] [PATCH] qemu: make sure agent returns error when required data are missing

2014-04-03 Thread Martin Kletzander
Commit 5b3492fa aimed to fix this and caught one error but exposed another one. When agent command is being executed and the thread waiting for the reply is woken up by an event (e.g. EOF in case of shutdown), the command finishes with no data (rxObject == NULL), but no error is reported, since

Re: [libvirt] [PATCH] qemu: make sure agent returns error when required data are missing

2014-04-03 Thread Qiang Guan
On Apr 3, 2014 at 13:58PM, Martin Kletzander wrote: Commit 5b3492fa aimed to fix this and caught one error but exposed another one. When agent command is being executed and the thread waiting for the reply is woken up by an event (e.g. EOF in case of shutdown), the command finishes with no data

Re: [libvirt] [PATCH] qemu: make sure agent returns error when required data are missing

2014-04-03 Thread Peter Krempa
On 04/03/14 07:58, Martin Kletzander wrote: Commit 5b3492fa aimed to fix this and caught one error but exposed another one. When agent command is being executed and the thread waiting for the reply is woken up by an event (e.g. EOF in case of shutdown), the command finishes with no data

Re: [libvirt] [PATCH] qemu: make sure agent returns error when required data are missing

2014-04-03 Thread Martin Kletzander
On Thu, Apr 03, 2014 at 09:32:02AM +0200, Peter Krempa wrote: On 04/03/14 07:58, Martin Kletzander wrote: Commit 5b3492fa aimed to fix this and caught one error but exposed another one. When agent command is being executed and the thread waiting for the reply is woken up by an event (e.g. EOF