Mercurial > hg > nginx
comparison src/event/ngx_event.c @ 3473:0299cf5856fc
do not update time in the timer signal handler,
since localtime_r() is not Async-Signal-Safe function
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 12 Mar 2010 14:31:47 +0000 |
parents | f9d97311c652 |
children | 0daede16d68b |
comparison
equal
deleted
inserted
replaced
3472:65481698535c | 3473:0299cf5856fc |
---|---|
560 void | 560 void |
561 ngx_timer_signal_handler(int signo) | 561 ngx_timer_signal_handler(int signo) |
562 { | 562 { |
563 ngx_event_timer_alarm = 1; | 563 ngx_event_timer_alarm = 1; |
564 | 564 |
565 ngx_time_update(0, 0); | |
566 | |
567 #if 1 | 565 #if 1 |
568 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, ngx_cycle->log, 0, "timer signal"); | 566 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, ngx_cycle->log, 0, "timer signal"); |
569 #endif | 567 #endif |
570 } | 568 } |
571 | 569 |