From 82da57b1abd33d1b0aa0741731e9d462f9258cfb Mon Sep 17 00:00:00 2001 From: Frank Lahm Date: Wed, 27 Jul 2011 16:50:24 +0200 Subject: [PATCH] Slightly change sleep time calculation --- libatalk/util/server_ipc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libatalk/util/server_ipc.c b/libatalk/util/server_ipc.c index 9b152195..659f5a70 100644 --- a/libatalk/util/server_ipc.c +++ b/libatalk/util/server_ipc.c @@ -188,8 +188,7 @@ int reconnect_ipc(AFPObj *obj) close(obj->ipc_fd); obj->ipc_fd = -1; - srandom(getpid()); - sleep((random() % 5) + 15); /* give it enough time to start */ + sleep((getpid() % 5) + 15); /* give it enough time to start */ while (retrycount++ < 10) { if ((obj->ipc_fd = ipc_client_uds(_PATH_AFP_IPC)) == -1) { -- 2.39.2