Mercurial > hg > nginx
diff src/http/modules/ngx_http_log_handler.c @ 100:7ebc8b7fb816
nginx-0.0.1-2003-06-03-19:42:58 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 03 Jun 2003 15:42:58 +0000 |
parents | a059e1aa65d4 |
children | 7e86d028d8f0 |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_log_handler.c +++ b/src/http/modules/ngx_http_log_handler.c @@ -198,5 +198,19 @@ static char *ngx_http_log_set_log(ngx_co return ngx_conf_errstr; } +#if (WIN32) + if (ngx_file_append_mode(lcf->file.fd) == NGX_ERROR) { + err = ngx_errno; + len = ngx_snprintf(ngx_conf_errstr, sizeof(ngx_conf_errstr) - 1, + ngx_file_appned_mode_n " \"%s\" failed (%d: ", + lcf->file.name.data, err); + len += ngx_strerror_r(err, ngx_conf_errstr + len, + sizeof(ngx_conf_errstr) - len - 1); + ngx_conf_errstr[len++] = ')'; + ngx_conf_errstr[len++] = '\0'; + return ngx_conf_errstr; + } +#endif + return NGX_CONF_OK; }