]> git.kaiwu.me - nginx.git/commit
Fixed handling of ngx_write_fd() and ngx_read_fd() errors.
authorValentin Bartenev <vbart@nginx.com>
Fri, 14 Dec 2012 15:24:24 +0000 (15:24 +0000)
committerValentin Bartenev <vbart@nginx.com>
Fri, 14 Dec 2012 15:24:24 +0000 (15:24 +0000)
commitfac3b341dae56adccc1ffa7e8147b3694b209381
tree4ee591f79bd8fc94284956fe3c5f93e1ac2645d1
parente86279e9f3d06ef50c518551eb6c7aea9d0bd41d
Fixed handling of ngx_write_fd() and ngx_read_fd() errors.

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