From: Ryota Ozaki Date: Wed, 29 Jul 2009 14:11:02 +0000 (+0200) Subject: qemu: fix monitor socket reconnection X-Git-Tag: v0.7.0~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abe3ee9cc53f65dc47727b7f9cf55999a710908b;p=thirdparty%2Flibvirt.git qemu: fix monitor socket reconnection * src/qemu_driver.c: fix qemudOpenMonitorUnix() to retry on ENOENT instead of EACCES which is the error one receive when the socket error hasn't shown up yet --- diff --git a/src/qemu_driver.c b/src/qemu_driver.c index 52a77be9a8..9fb8506da1 100644 --- a/src/qemu_driver.c +++ b/src/qemu_driver.c @@ -917,8 +917,8 @@ qemudOpenMonitorUnix(virConnectPtr conn, if (ret == 0) break; - if (errno == EACCES || errno == ECONNREFUSED) { - /* EACCES : Socket may not have shown up yet + if (errno == ENOENT || errno == ECONNREFUSED) { + /* ENOENT : Socket may not have shown up yet * ECONNREFUSED : Leftover socket hasn't been removed yet */ continue; }