Mercurial > hg > nginx-quic
comparison src/mail/ngx_mail_pop3_module.c @ 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 | d620f497c50f |
children | ec01b1d1fff1 |
comparison
equal
deleted
inserted
replaced
4965:58dfef910ccd | 4966:c821975c9068 |
---|