diff options
author | Igor Sysoev <igor@sysoev.ru> | 2010-03-25 12:10:10 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2010-03-25 12:10:10 +0300 |
commit | 6d45d8a50da07591ed0de584bba1e526cc9b9406 (patch) | |
tree | 7ec3bc90902c6ddd64df14ee89e152cd452e229f /src/os/unix | |
parent | 2f916a972139be74d437e40bdc7d236401123170 (diff) |
*) introduce ngx_time_sigsafe_update() to update the error log time only
*) change ngx_time_update() interface
Diffstat (limited to 'src/os/unix')
-rw-r--r-- | src/os/unix/ngx_process.c | 2 | ||||
-rw-r--r-- | src/os/unix/ngx_process_cycle.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/os/unix/ngx_process.c b/src/os/unix/ngx_process.c index 4c418000a..224101d2e 100644 --- a/src/os/unix/ngx_process.c +++ b/src/os/unix/ngx_process.c @@ -317,7 +317,7 @@ ngx_signal_handler(int signo) } } - ngx_time_update(1); + ngx_time_sigsafe_update(); action = ""; diff --git a/src/os/unix/ngx_process_cycle.c b/src/os/unix/ngx_process_cycle.c index 18046384a..82d322dfc 100644 --- a/src/os/unix/ngx_process_cycle.c +++ b/src/os/unix/ngx_process_cycle.c @@ -168,7 +168,7 @@ ngx_master_process_cycle(ngx_cycle_t *cycle) sigsuspend(&set); - ngx_time_update(0); + ngx_time_update(); ngx_log_debug1(NGX_LOG_DEBUG_EVENT, cycle->log, 0, "wake up, sigio %i", sigio); @@ -1342,7 +1342,7 @@ ngx_cache_manager_process_handler(ngx_event_t *ev) next = (n <= next) ? n : next; - ngx_time_update(0); + ngx_time_update(); } } @@ -1372,7 +1372,7 @@ ngx_cache_loader_process_handler(ngx_event_t *ev) if (path[i]->loader) { path[i]->loader(path[i]->data); - ngx_time_update(0); + ngx_time_update(); } } |