diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-07-10 16:26:57 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-07-10 16:26:57 +0000 |
commit | b8c367c7b9155857f1c068624aa059830db57fa8 (patch) | |
tree | dbb12653e14051e3278b5c558de02d1917f04ee3 /src/core/ngx_log.c | |
parent | 9d639520aa95f0ff3882ea348d4347f69cbae493 (diff) | |
download | nginx-b8c367c7b9155857f1c068624aa059830db57fa8.tar.gz nginx-b8c367c7b9155857f1c068624aa059830db57fa8.zip |
nginx-0.0.1-2003-07-10-20:26:57 import
Diffstat (limited to 'src/core/ngx_log.c')
-rw-r--r-- | src/core/ngx_log.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/ngx_log.c b/src/core/ngx_log.c index 2f8276bb6..c3cec3862 100644 --- a/src/core/ngx_log.c +++ b/src/core/ngx_log.c @@ -240,13 +240,16 @@ ngx_log_t *ngx_log_init_errlog() } -ngx_log_t *ngx_log_create_errlog(ngx_cycle_t *cycle) +ngx_log_t *ngx_log_create_errlog(ngx_cycle_t *cycle, ngx_str_t *name) { ngx_log_t *log; ngx_test_null(log, ngx_pcalloc(cycle->pool, sizeof(ngx_log_t)), NULL); ngx_test_null(log->file, ngx_push_array(&cycle->open_files), NULL); log->file->fd = NGX_INVALID_FILE; + if (name) { + log->file->name = *name; + } return log; } |