• W
    do not send monitor command after monitor meet error · cc2424fc
    Wen Congyang 提交于
    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: NWen Congyang <wency@cn.fujitsu.com>
    cc2424fc
qemu_monitor.c 57.0 KB