mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-26 18:41:17 +00:00
* src/remote_internal.c: fix autostart of session daemon, patch
by Dan Berrange Daniel
This commit is contained in:
parent
299aefebf2
commit
372d5b3088
@ -1,3 +1,8 @@
|
|||||||
|
Thu Feb 26 16:05:04 CET 2009 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
|
* src/remote_internal.c: fix autostart of session daemon, patch
|
||||||
|
by Dan Berrange
|
||||||
|
|
||||||
Thu Feb 26 15:35:40 CET 2009 Daniel Veillard <veillard@redhat.com>
|
Thu Feb 26 15:35:40 CET 2009 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
* src/storage_backend_fs.c: fix compile-error when configured without
|
* src/storage_backend_fs.c: fix compile-error when configured without
|
||||||
|
@ -651,12 +651,13 @@ doRemoteOpen (virConnectPtr conn,
|
|||||||
*/
|
*/
|
||||||
if (errno == ECONNREFUSED &&
|
if (errno == ECONNREFUSED &&
|
||||||
flags & VIR_DRV_OPEN_REMOTE_AUTOSTART &&
|
flags & VIR_DRV_OPEN_REMOTE_AUTOSTART &&
|
||||||
trials < 5) {
|
trials < 20) {
|
||||||
close(priv->sock);
|
close(priv->sock);
|
||||||
priv->sock = -1;
|
priv->sock = -1;
|
||||||
if (remoteForkDaemon(conn) == 0) {
|
if (trials > 0 ||
|
||||||
|
remoteForkDaemon(conn) == 0) {
|
||||||
trials++;
|
trials++;
|
||||||
usleep(5000 * trials * trials);
|
usleep(1000 * 100 * trials);
|
||||||
goto autostart_retry;
|
goto autostart_retry;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user