Mercurial > hg > nginx
comparison src/core/ngx_cycle.c @ 2782:4bd7825fab80
uniform ngx_file_info() interface with ngx_fd_info()
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 29 Apr 2009 19:28:52 +0000 |
parents | 77264e0157ad |
children | d478379e51ac |
comparison
equal
deleted
inserted
replaced
2781:f545c81e5ddb | 2782:4bd7825fab80 |
---|---|
1124 | 1124 |
1125 #if !(NGX_WIN32) | 1125 #if !(NGX_WIN32) |
1126 if (user != (ngx_uid_t) NGX_CONF_UNSET_UINT) { | 1126 if (user != (ngx_uid_t) NGX_CONF_UNSET_UINT) { |
1127 ngx_file_info_t fi; | 1127 ngx_file_info_t fi; |
1128 | 1128 |
1129 if (ngx_file_info((const char *) file[i].name.data, &fi) == -1) { | 1129 if (ngx_file_info((const char *) file[i].name.data, &fi) |
1130 == NGX_FILE_ERROR) | |
1131 { | |
1130 ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_errno, | 1132 ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_errno, |
1131 ngx_file_info_n " \"%s\" failed", | 1133 ngx_file_info_n " \"%s\" failed", |
1132 file[i].name.data); | 1134 file[i].name.data); |
1133 | 1135 |
1134 if (ngx_close_file(fd) == NGX_FILE_ERROR) { | 1136 if (ngx_close_file(fd) == NGX_FILE_ERROR) { |