]> arthur.barton.de Git - netatalk.git/commitdiff
Reduce sleep time to 5-10 s
authorFrank Lahm <franklahm@googlemail.com>
Fri, 27 May 2011 13:54:24 +0000 (15:54 +0200)
committerFrank Lahm <franklahm@googlemail.com>
Fri, 27 May 2011 13:54:24 +0000 (15:54 +0200)
libatalk/util/server_ipc.c

index 76ec6c97a27c029ef0ea7135da2d3858840f92d9..87ffa7763bf8848ed943147738ab690709ac8278 100644 (file)
@@ -189,7 +189,7 @@ int reconnect_ipc(AFPObj *obj)
     obj->ipc_fd = -1;
 
     srandom(getpid());
-    sleep((random() % 10) + 5);  /* give it enough time to start */
+    sleep((random() % 5) + 5);  /* give it enough time to start */
 
     while (retrycount++ < 10) {
         if ((obj->ipc_fd = ipc_client_uds(_PATH_AFP_IPC)) == -1) {