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:
Peter Krempa 2022-08-02 14:26:41 +02:00
parent 7c849ad518
commit 13320bf77e

View File

@ -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;