Mercurial > hg > nginx-quic
comparison src/core/ngx_cycle.c @ 3587:e1409e56ba7c stable-0.7
merge r3473, r3474, r3385, r3386, r3537:
signal processing stability:
*) use sys_errlist[] in signal handler instead
of non Async-Signal-Safe strerror_r()
*) do not update time in the timer signal handler,
since localtime_r() is not Async-Signal-Safe function
*) use previously cached GMT offset value to update time from a signal handler
*) change ngx_time_update() interface since there are no notification methods
those return time
*) introduce ngx_time_sigsafe_update() to update the error log time only
*) change ngx_time_update() interface
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 07 Jun 2010 10:35:08 +0000 |
parents | 8254055b6693 |
children | 935c5eb13c7d |
comparison
equal
deleted
inserted
replaced
3586:2d21e02fc01d | 3587:e1409e56ba7c |
---|---|
61 /* force localtime update with a new timezone */ | 61 /* force localtime update with a new timezone */ |
62 | 62 |
63 tp = ngx_timeofday(); | 63 tp = ngx_timeofday(); |
64 tp->sec = 0; | 64 tp->sec = 0; |
65 | 65 |
66 ngx_time_update(0, 0); | 66 ngx_time_update(); |
67 | 67 |
68 | 68 |
69 log = old_cycle->log; | 69 log = old_cycle->log; |
70 | 70 |
71 pool = ngx_create_pool(NGX_CYCLE_POOL_SIZE, log); | 71 pool = ngx_create_pool(NGX_CYCLE_POOL_SIZE, log); |