mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 18:05:20 +00:00
qemuProcessQMPConnectMonitor: Connect to probing monitor with 'retry' set to false
In 'qemuProcessQMPLaunch' qemu is very specifically launched using it's internal '-daemonize' flag (see comment in the function) to ensure that the monitor socket is ready and opened prior to attempting the monitor connection. This means we don't have to retry the connection to the monitor in qemuMonitorOpen as the socket will be already there. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
parent
7c849ad518
commit
13320bf77e
@ -9493,7 +9493,7 @@ qemuProcessQMPConnectMonitor(qemuProcessQMP *proc)
|
||||
|
||||
proc->vm->pid = proc->pid;
|
||||
|
||||
if (!(proc->mon = qemuMonitorOpen(proc->vm, &monConfig, true,
|
||||
if (!(proc->mon = qemuMonitorOpen(proc->vm, &monConfig, false,
|
||||
virEventThreadGetContext(proc->eventThread),
|
||||
&callbacks)))
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user