diff options
author | Valentin Bartenev <vbart@nginx.com> | 2016-05-16 16:22:34 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2016-05-16 16:22:34 +0300 |
commit | 7850609cf916a2fcb3a05f0ed05ae4d3f9dbcde7 (patch) | |
tree | 2a48920f61cc66e168f8a591db8d96e4b72f55e9 /src | |
parent | 12f436718963f8343e38ad6d0e8f7251c95984cd (diff) | |
download | nginx-7850609cf916a2fcb3a05f0ed05ae4d3f9dbcde7.tar.gz nginx-7850609cf916a2fcb3a05f0ed05ae4d3f9dbcde7.zip |
Fixed an error log message about epoll_wait() timeout.
The errno value is unset in case of epoll_wait() timeout.
Diffstat (limited to 'src')
-rw-r--r-- | src/event/modules/ngx_epoll_module.c | 4 |
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, |