#endif
#include <sys/types.h>
-#ifdef HAVE_UNISTD_H
#include <unistd.h>
-#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
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) {
sleep(1);
continue;
}
- LOG(log_note, logtype_afpd, "reconnect_ipc: succesfull IPC reconnect");
+ LOG(log_debug, logtype_afpd, "reconnect_ipc: succesfull IPC reconnect");
return 0;
}
return -1;
return 0;
}
-