sigcrash(signum);
break;
}
+ #ifdef WIN32
+ exit(signum);
+ #else
kill(getpid(), signum);
+ #endif
}
static void sigcrash(int signum) {
}
putlog(LOGLEVEL_INFO, "hard shutdown...");
exit_daemon();
- sleep(1);
+ usleep(1000000);
//hard restart
restart_process();
}