mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
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:
parent
a8e34e298e
commit
abe3ee9cc5
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user