diff options
| author | Maxim Dounin <mdounin@mdounin.ru> | 2013-02-10 03:55:18 +0000 |
|---|---|---|
| committer | Maxim Dounin <mdounin@mdounin.ru> | 2013-02-10 03:55:18 +0000 |
| commit | b217a2a46705b3fc6eb939fe112e5145ae263135 (patch) | |
| tree | 59f2d86792cc9ce20081a2a7991113d94b8153bb /src/os/unix/ngx_user.c | |
| parent | ad72db49c01a9b7bfa16199c7e4760000286790d (diff) | |
| download | nginx-b217a2a46705b3fc6eb939fe112e5145ae263135.tar.gz nginx-b217a2a46705b3fc6eb939fe112e5145ae263135.tar.bz2 | |
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.
Diffstat (limited to 'src/os/unix/ngx_user.c')
0 files changed, 0 insertions, 0 deletions
