diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-07-02 14:41:17 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-07-02 14:41:17 +0000 |
commit | 96c56c9ab6e73f9d92242fdc4f0cc3b64495bd23 (patch) | |
tree | 643c8cf608d27cb9db0624d7099258891ac63689 /src/core/ngx_log.c | |
parent | bc5c28714a2db990e9d1bfca66480efeb7b6052a (diff) | |
download | nginx-96c56c9ab6e73f9d92242fdc4f0cc3b64495bd23.tar.gz nginx-96c56c9ab6e73f9d92242fdc4f0cc3b64495bd23.zip |
nginx-0.0.1-2003-07-02-18:41:17 import
Diffstat (limited to 'src/core/ngx_log.c')
-rw-r--r-- | src/core/ngx_log.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/ngx_log.c b/src/core/ngx_log.c index d4f3df357..51bae3d1a 100644 --- a/src/core/ngx_log.c +++ b/src/core/ngx_log.c @@ -246,6 +246,17 @@ ngx_log_t *ngx_log_init_errlog() } +ngx_log_t *ngx_log_create_errlog(ngx_cycle_t *cycle) +{ + 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); + + return log; +} + + char *ngx_log_set_errlog(ngx_conf_t *cf, ngx_command_t *cmd, ngx_log_t *log) { int len; |