* This is the RPC server side idle loop.
* Wait for input, call server program.
*/
-#include "config.h"
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <errno.h>
+#include <time.h>
#include "statd.h"
#include "notlist.h"
tv.tv_sec = NL_WHEN(notify) - now;
tv.tv_usec = 0;
- dprintf(L_DEBUG, "Waiting for reply... (timeo %d)",
+ dprintf(N_DEBUG, "Waiting for reply... (timeo %d)",
tv.tv_sec);
selret = select(FD_SETSIZE, &readfds,
(void *) 0, (void *) 0, &tv);
} else {
- dprintf(L_DEBUG, "Waiting for client connections.");
+ dprintf(N_DEBUG, "Waiting for client connections.");
selret = select(FD_SETSIZE, &readfds,
(void *) 0, (void *) 0, (struct timeval *) 0);
}
if (errno == EINTR || errno == ECONNREFUSED
|| errno == ENETUNREACH || errno == EHOSTUNREACH)
continue;
- log(L_ERROR, "my_svc_run() - select: %m");
+ note(N_ERROR, "my_svc_run() - select: %s",
+ strerror (errno));
return;
case 0: