Mercurial > hg > nginx
diff src/core/nginx.c @ 251:c31c40540318
nginx-0.0.2-2004-02-04-23:30:08 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 04 Feb 2004 20:30:08 +0000 |
parents | 2a0540287298 |
children | 84b1c672ec5a |
line wrap: on
line diff
--- a/src/core/nginx.c Tue Feb 03 20:27:11 2004 +0000 +++ b/src/core/nginx.c Wed Feb 04 20:30:08 2004 +0000 @@ -221,7 +221,7 @@ } -/* TODO: broken single process */ +/* TODO: broken NGX_PROCESS_SINGLE */ static void ngx_master_process_cycle(ngx_cycle_t *cycle, ngx_master_ctx_t *ctx) { @@ -634,6 +634,12 @@ ngx_log_debug0(NGX_LOG_DEBUG_EVENT, cycle->log, 0, "worker cycle"); ngx_process_events(cycle->log); + + if (ngx_reopen) { + ngx_log_error(NGX_LOG_INFO, cycle->log, 0, "reopen logs"); + ngx_reopen_files(cycle, -1); + ngx_reopen = 0; + } } }