[core] fdevent_poll() is effective periodic timer
document that USE_ALARM in server.c is not used
@@ -2004,15 +2004,18 @@ static int server_main_loop (server * const srv) {
if (server_handle_sighup(srv)) return -1;
}
- if (handle_sig_alarm) {
- time_t min_ts = time(NULL);
+ /*(USE_ALARM not used; fdevent_poll() is effective periodic timer)*/
#ifdef USE_ALARM
+ if (handle_sig_alarm) {
handle_sig_alarm = 0;
#endif
+ time_t min_ts = time(NULL);
if (min_ts != srv->cur_ts) {
server_handle_sigalrm(srv, min_ts, last_active_ts);
}
+ #ifdef USE_ALARM
}
+ #endif
if (handle_sig_child) {
handle_sig_child = 0;
