]> git.kaiwu.me - nginx.git/commit
Merge of r5138: use of NGX_FILE_ERROR.
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 29 Mar 2013 18:18:42 +0000 (18:18 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 29 Mar 2013 18:18:42 +0000 (18:18 +0000)
commite693243a9f0382486b74fe9ca4248f9e4eca507e
tree452759c29f59fff4c2202acd7d6791a1f768d644
parent4e2bbc23c1564ac1458dc17c5c6c38ca52ae012d
Merge of r5138: use of NGX_FILE_ERROR.

Use NGX_FILE_ERROR for handling file operations errors.

On Win32 platforms 0 is used to indicate errors in file operations, so
comparing against either -1 or NGX_OK is not portable.

This was not much of an issue in patched code, since only ngx_fd_info() test
is actually reachable on Win32 and in worst case it might result in bogus
error log entry.

Patch by Piotr Sikora.
src/core/nginx.c
src/core/ngx_conf_file.c
src/core/ngx_connection.c
src/core/ngx_cycle.c
src/os/unix/ngx_process_cycle.c