comparison src/event/modules/ngx_epoll_module.c @ 6537:3ad1064a3aae

Fixed an error log message about epoll_wait() timeout. The errno value is unset in case of epoll_wait() timeout.
author Valentin Bartenev <vbart@nginx.com>
date Mon, 16 May 2016 16:22:34 +0300
parents f7849bfb6d21
children a01e400dd4a1
comparison
equal deleted inserted replaced
6536:f7849bfb6d21 6537:3ad1064a3aae
998 998
999 if (events) { 999 if (events) {
1000 ngx_use_epoll_rdhup = ee.events & EPOLLRDHUP; 1000 ngx_use_epoll_rdhup = ee.events & EPOLLRDHUP;
1001 1001
1002 } else { 1002 } else {
1003 ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno, 1003 ngx_log_error(NGX_LOG_ALERT, cycle->log, NGX_ETIMEDOUT,
1004 "epoll_wait() timedout"); 1004 "epoll_wait() timed out");
1005 } 1005 }
1006 1006
1007 ngx_log_error(NGX_LOG_NOTICE, cycle->log, 0, 1007 ngx_log_error(NGX_LOG_NOTICE, cycle->log, 0,
1008 "testing the EPOLLRDHUP flag: %s", 1008 "testing the EPOLLRDHUP flag: %s",
1009 ngx_use_epoll_rdhup ? "success" : "fail"); 1009 ngx_use_epoll_rdhup ? "success" : "fail");