]> xenbits.xensource.com Git - libvirt.git/commitdiff
* src/remote_internal.c: fix autostart of session daemon, patch
authorDaniel Veillard <veillard@redhat.com>
Thu, 26 Feb 2009 15:06:06 +0000 (15:06 +0000)
committerDaniel Veillard <veillard@redhat.com>
Thu, 26 Feb 2009 15:06:06 +0000 (15:06 +0000)
  by Dan Berrange
Daniel

ChangeLog
src/remote_internal.c

index 409937e69ce2f9cea0b6a50f45e1718b77221f43..e46ca993741f150c6755fdec0dd89092e182833a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * src/storage_backend_fs.c: fix compile-error when configured without
index eda61778081c55027ca052c9b4a4301a0e6b504a..0439905fd60266db08c1283c4b482152147384ce 100644 (file)
@@ -651,12 +651,13 @@ doRemoteOpen (virConnectPtr conn,
              */
             if (errno == ECONNREFUSED &&
                 flags & VIR_DRV_OPEN_REMOTE_AUTOSTART &&
-                trials < 5) {
+                trials < 20) {
                 close(priv->sock);
                 priv->sock = -1;
-                if (remoteForkDaemon(conn) == 0) {
+                if (trials > 0 ||
+                    remoteForkDaemon(conn) == 0) {
                     trials++;
-                    usleep(5000 * trials * trials);
+                    usleep(1000 * 100 * trials);
                     goto autostart_retry;
                 }
             }