diff options
author | Vladimir Homutov <vl@nginx.com> | 2014-05-12 16:34:15 +0400 |
---|---|---|
committer | Vladimir Homutov <vl@nginx.com> | 2014-05-12 16:34:15 +0400 |
commit | 493b898ae94ae7dd390d77c42f5500974be48393 (patch) | |
tree | b85c242bcdba82459aa209c76efbe0b4f826f103 /src/os/unix/ngx_process_cycle.c | |
parent | 1736c180f4683d57d175b98d5596b779bab950d4 (diff) | |
download | nginx-493b898ae94ae7dd390d77c42f5500974be48393.tar.gz nginx-493b898ae94ae7dd390d77c42f5500974be48393.zip |
Added syslog support for error_log and access_log directives.
Diffstat (limited to 'src/os/unix/ngx_process_cycle.c')
-rw-r--r-- | src/os/unix/ngx_process_cycle.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/os/unix/ngx_process_cycle.c b/src/os/unix/ngx_process_cycle.c index be55cea20..fb10d7746 100644 --- a/src/os/unix/ngx_process_cycle.c +++ b/src/os/unix/ngx_process_cycle.c @@ -710,11 +710,13 @@ ngx_master_process_exit(ngx_cycle_t *cycle) * ngx_cycle->pool is already destroyed. */ - ngx_exit_log_file.fd = ngx_cycle->log->file->fd; - ngx_exit_log = *ngx_cycle->log; + ngx_exit_log = *ngx_log_get_file_log(ngx_cycle->log); + + ngx_exit_log_file.fd = ngx_exit_log.file->fd; ngx_exit_log.file = &ngx_exit_log_file; ngx_exit_log.next = NULL; + ngx_exit_log.writer = NULL; ngx_exit_cycle.log = &ngx_exit_log; ngx_exit_cycle.files = ngx_cycle->files; @@ -1065,11 +1067,12 @@ ngx_worker_process_exit(ngx_cycle_t *cycle) * ngx_cycle->pool is already destroyed. */ - ngx_exit_log_file.fd = ngx_cycle->log->file->fd; + ngx_exit_log = *ngx_log_get_file_log(ngx_cycle->log); - ngx_exit_log = *ngx_cycle->log; + ngx_exit_log_file.fd = ngx_exit_log.file->fd; ngx_exit_log.file = &ngx_exit_log_file; ngx_exit_log.next = NULL; + ngx_exit_log.writer = NULL; ngx_exit_cycle.log = &ngx_exit_log; ngx_exit_cycle.files = ngx_cycle->files; |