]> git.kaiwu.me - nginx.git/commitdiff
Fixed an error log message about epoll_wait() timeout.
authorValentin Bartenev <vbart@nginx.com>
Mon, 16 May 2016 13:22:34 +0000 (16:22 +0300)
committerValentin Bartenev <vbart@nginx.com>
Mon, 16 May 2016 13:22:34 +0000 (16:22 +0300)
The errno value is unset in case of epoll_wait() timeout.

src/event/modules/ngx_epoll_module.c

index 0b23a952f90865e179837d5d78979c810d51d93b..b1e520b2d4a7b9ae8f0a6551651255fa58126e71 100644 (file)
@@ -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,