Mercurial > hg > nginx-quic
diff src/core/ngx_log.c @ 449:3b1e8c9df9ad
nginx-0.1.0-2004-10-04-00:02:06 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 03 Oct 2004 20:02:06 +0000 |
parents | 241dc8092a33 |
children | 295d97d70c69 |
line wrap: on
line diff
--- a/src/core/ngx_log.c +++ b/src/core/ngx_log.c @@ -228,13 +228,16 @@ ngx_log_t *ngx_log_init_stderr() { #if (WIN32) - ngx_stderr.fd = GetStdHandle(STD_ERROR_HANDLE); + ngx_stderr_fileno = GetStdHandle(STD_ERROR_HANDLE); + ngx_stderr.fd = ngx_stderr_fileno; - if (ngx_stderr.fd == NGX_INVALID_FILE) { + if (ngx_stderr_fileno == NGX_INVALID_FILE) { + /* TODO: where can we log error ? */ + return NULL; - } else if (ngx_stderr.fd == NULL) { + } else if (ngx_stderr_fileno == NULL) { /* there are no associated standard handles */ @@ -256,6 +259,8 @@ ngx_log_t *ngx_log_init_stderr() } +#if 0 + ngx_int_t ngx_log_init_error_log() { ngx_fd_t fd; @@ -299,6 +304,8 @@ ngx_int_t ngx_log_init_error_log() return NGX_OK; } +#endif + ngx_log_t *ngx_log_create_errlog(ngx_cycle_t *cycle, ngx_array_t *args) {