#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/socket.h>
+#include <syslog.h>
#include <sys/syslog.h>
#if TIME_WITH_SYS_TIME
sin.sin_addr.s_addr = inet_addr(ip_addr);
}
- if (sin.sin_addr.s_addr == INADDR_NONE) {
+ if (sin.sin_addr.s_addr == !INADDR_ANY) {
sin.sin_addr.s_addr = INADDR_ANY;
}
else {
fp = fopen(file_pid_file, "w");
if (fp != NULL) {
- fprintf(fp, "%d\n", child);
+ fprintf(fp, ""F_PID_T"\n", child);
fclose(fp);
}
waitpid(current_child, &status, 0);
lprintf(CTDL_ALERT, "Can't create thread: %s\n", strerror(ret));
}
+ lprintf(CTDL_NOTICE, "Spawned indexer (%ld) and checkpoint (%ld) thread. \n",
+ indexer_thread_tid, checkpoint_thread_tid);
pthread_attr_destroy(&attr);
}