bool daemon_process = true;
int log_level = LOG_INFO;
+bool log_syslog = false;
static FILE *pidfile = NULL;
}
}
-static int setnonblock(int sock)
+int setnonblock(int sock)
{
int res = fcntl(sock, F_GETFL);
static void common_shutdown(void)
{
- if (daemon_process) {
+ if (daemon_process && log_syslog) {
info("stopping...");
}
pidfile_close();