]> git.kaiwu.me - nginx.git/commitdiff
Explicitly ignore returned value from close() in ngx_event_core_init_conf().
authorAndrey Belov <defan@nginx.com>
Tue, 7 Aug 2012 13:57:04 +0000 (13:57 +0000)
committerAndrey Belov <defan@nginx.com>
Tue, 7 Aug 2012 13:57:04 +0000 (13:57 +0000)
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.

src/event/ngx_event.c

index 600a433942f5a9b234eb3185c88c340ca1905883..976bd646581caa3db7603e9d3cb818b00d2e4098 100644 (file)
@@ -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) {