aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/event/modules/ngx_epoll_module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event/modules/ngx_epoll_module.c b/src/event/modules/ngx_epoll_module.c
index 0b23a952f..b1e520b2d 100644
--- a/src/event/modules/ngx_epoll_module.c
+++ b/src/event/modules/ngx_epoll_module.c
@@ -1000,8 +1000,8 @@ ngx_epoll_module_init(ngx_cycle_t *cycle)
ngx_use_epoll_rdhup = ee.events & EPOLLRDHUP;
} else {
- ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno,
- "epoll_wait() timedout");
+ ngx_log_error(NGX_LOG_ALERT, cycle->log, NGX_ETIMEDOUT,
+ "epoll_wait() timed out");
}
ngx_log_error(NGX_LOG_NOTICE, cycle->log, 0,