Mercurial > hg > nginx-quic
diff src/mail/ngx_mail.h @ 4966:c821975c9068
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.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Fri, 14 Dec 2012 15:24:24 +0000 |
parents | bdcdbdf35b52 |
children | 04e43d03e153 |