Mercurial > hg > nginx
comparison src/os/unix/ngx_process_cycle.c @ 5702:777202558122
Added syslog support for error_log and access_log directives.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Mon, 12 May 2014 16:34:15 +0400 |
parents | e45fa57ef725 |
children | f8764e20fcd7 |
comparison
equal
deleted
inserted
replaced
5701:1209b8a7b077 | 5702:777202558122 |
---|---|
708 * log, and log file structures enough to allow a signal handler to log. | 708 * log, and log file structures enough to allow a signal handler to log. |
709 * The handler may be called when standard ngx_cycle->log allocated from | 709 * The handler may be called when standard ngx_cycle->log allocated from |
710 * ngx_cycle->pool is already destroyed. | 710 * ngx_cycle->pool is already destroyed. |
711 */ | 711 */ |
712 | 712 |
713 ngx_exit_log_file.fd = ngx_cycle->log->file->fd; | 713 |
714 | 714 ngx_exit_log = *ngx_log_get_file_log(ngx_cycle->log); |
715 ngx_exit_log = *ngx_cycle->log; | 715 |
716 ngx_exit_log_file.fd = ngx_exit_log.file->fd; | |
716 ngx_exit_log.file = &ngx_exit_log_file; | 717 ngx_exit_log.file = &ngx_exit_log_file; |
717 ngx_exit_log.next = NULL; | 718 ngx_exit_log.next = NULL; |
719 ngx_exit_log.writer = NULL; | |
718 | 720 |
719 ngx_exit_cycle.log = &ngx_exit_log; | 721 ngx_exit_cycle.log = &ngx_exit_log; |
720 ngx_exit_cycle.files = ngx_cycle->files; | 722 ngx_exit_cycle.files = ngx_cycle->files; |
721 ngx_exit_cycle.files_n = ngx_cycle->files_n; | 723 ngx_exit_cycle.files_n = ngx_cycle->files_n; |
722 ngx_cycle = &ngx_exit_cycle; | 724 ngx_cycle = &ngx_exit_cycle; |
1063 * log, and log file structures enough to allow a signal handler to log. | 1065 * log, and log file structures enough to allow a signal handler to log. |
1064 * The handler may be called when standard ngx_cycle->log allocated from | 1066 * The handler may be called when standard ngx_cycle->log allocated from |
1065 * ngx_cycle->pool is already destroyed. | 1067 * ngx_cycle->pool is already destroyed. |
1066 */ | 1068 */ |
1067 | 1069 |
1068 ngx_exit_log_file.fd = ngx_cycle->log->file->fd; | 1070 ngx_exit_log = *ngx_log_get_file_log(ngx_cycle->log); |
1069 | 1071 |
1070 ngx_exit_log = *ngx_cycle->log; | 1072 ngx_exit_log_file.fd = ngx_exit_log.file->fd; |
1071 ngx_exit_log.file = &ngx_exit_log_file; | 1073 ngx_exit_log.file = &ngx_exit_log_file; |
1072 ngx_exit_log.next = NULL; | 1074 ngx_exit_log.next = NULL; |
1075 ngx_exit_log.writer = NULL; | |
1073 | 1076 |
1074 ngx_exit_cycle.log = &ngx_exit_log; | 1077 ngx_exit_cycle.log = &ngx_exit_log; |
1075 ngx_exit_cycle.files = ngx_cycle->files; | 1078 ngx_exit_cycle.files = ngx_cycle->files; |
1076 ngx_exit_cycle.files_n = ngx_cycle->files_n; | 1079 ngx_exit_cycle.files_n = ngx_cycle->files_n; |
1077 ngx_cycle = &ngx_exit_cycle; | 1080 ngx_cycle = &ngx_exit_cycle; |