]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Wait for monitor socket even without pid
authorViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Mon, 26 Nov 2012 14:17:12 +0000 (15:17 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 28 Nov 2012 14:54:21 +0000 (14:54 +0000)
commit7a95eccc816cfd37377d2fcf3978522c50c072b8
tree0396475356b8769f23dc5de290dbfef9b157be22
parentdf33ecdd9e897cf6af56e2120d44bfbcccc80a32
qemu: Wait for monitor socket even without pid

If qemuMonitorOpenUnix is called without a related pid, i.e. for
QMP probing, a connect failure can happen as the result of a race.
Without a pid there is no retry and thus we give up too early.
This changes the code to retry if no pid is supplied.

Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
src/qemu/qemu_monitor.c