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
This commit is contained in:
Ryota Ozaki 2009-07-29 16:11:02 +02:00 committed by Daniel Veillard
parent a8e34e298e
commit abe3ee9cc5

View File

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