aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Belov <defan@nginx.com>2012-08-07 13:57:04 +0000
committerAndrey Belov <defan@nginx.com>2012-08-07 13:57:04 +0000
commit2af80d5fab3e3962baf38d65eebcfe79312ae32e (patch)
tree0650217a25acfb95286e6ca425bbef020164a4bf
parent66e9525e84a2d09269eb766da15df60c5bc0a1dd (diff)
downloadnginx-2af80d5fab3e3962baf38d65eebcfe79312ae32e.tar.gz
nginx-2af80d5fab3e3962baf38d65eebcfe79312ae32e.zip
Explicitly ignore returned value from close() in ngx_event_core_init_conf().
We don't have strong reason to inform about any errors reported by close() call here, and there are no other things to do with its return value. Prodded by Coverity.
-rw-r--r--src/event/ngx_event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event/ngx_event.c b/src/event/ngx_event.c
index 600a43394..976bd6465 100644
--- a/src/event/ngx_event.c
+++ b/src/event/ngx_event.c
@@ -1214,7 +1214,7 @@ ngx_event_core_init_conf(ngx_cycle_t *cycle, void *conf)
fd = epoll_create(100);
if (fd != -1) {
- close(fd);
+ (void) close(fd);
module = &ngx_epoll_module;
} else if (ngx_errno != NGX_ENOSYS) {