提交 abe3ee9c 编写于 作者: R Ryota Ozaki 提交者: Daniel Veillard

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
上级 a8e34e29
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册