]> xenbits.xensource.com Git - libvirt.git/commit
do not send monitor command after monitor meet error
authorWen Congyang <wency@cn.fujitsu.com>
Wed, 30 Mar 2011 01:43:25 +0000 (09:43 +0800)
committerWen Congyang <wency@cn.fujitsu.com>
Wed, 30 Mar 2011 08:32:22 +0000 (16:32 +0800)
commitcc2424fc65a6b4b307f0d7a314d595cd3f15589e
tree0f5816ae5679f2154b2cdcaec58e630b9c1ce0bd
parent025e19981008662dc230562b5e9d8faa86027384
do not send monitor command after monitor meet error

If the monitor met a error, and we will call qemuProcessHandleMonitorEOF().
But we may try to send monitor command after qemuProcessHandleMonitorEOF()
returned. Then libvirtd will be blocked in qemuMonitorSend().

Steps to reproduce this bug:
1. use gdb to attach libvirtd, and set a breakpoint in the function
   qemuConnectMonitor()
2. start a vm
3. let the libvirtd to run until qemuMonitorOpen() returns.
4. kill the qemu process
5. continue running libvirtd

Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
src/qemu/qemu_monitor.c