]> git.kaiwu.me - nginx.git/commit
Merge of r4967: ngx_write_fd() and ngx_read_fd() errors handling.
authorMaxim Dounin <mdounin@mdounin.ru>
Sun, 10 Feb 2013 03:55:18 +0000 (03:55 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Sun, 10 Feb 2013 03:55:18 +0000 (03:55 +0000)
commitb217a2a46705b3fc6eb939fe112e5145ae263135
tree59f2d86792cc9ce20081a2a7991113d94b8153bb
parentad72db49c01a9b7bfa16199c7e4760000286790d
Merge of r4967: ngx_write_fd() and ngx_read_fd() errors handling.

The ngx_write_fd() and ngx_read_fd() functions return -1 in case of error,
so the incorrect comparison with NGX_FILE_ERROR (which is 0 on windows
platforms) might result in inaccurate error message in the error log.

Also the ngx_errno global variable is being set only if the returned value
is -1.
src/core/ngx_conf_file.c
src/core/ngx_cycle.c
src/core/ngx_file.c