[nginx] svn commit: r4811 - trunk/src/event

defan at nginx.com defan at nginx.com
Tue Aug 7 13:57:04 UTC 2012


Author: defan
Date: 2012-08-07 13:57:04 +0000 (Tue, 07 Aug 2012)
New Revision: 4811
URL: http://trac.nginx.org/nginx/changeset/4811/nginx

Log:
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.


Modified:
   trunk/src/event/ngx_event.c

Modified: trunk/src/event/ngx_event.c
===================================================================
--- trunk/src/event/ngx_event.c	2012-08-07 12:36:19 UTC (rev 4810)
+++ trunk/src/event/ngx_event.c	2012-08-07 13:57:04 UTC (rev 4811)
@@ -1214,7 +1214,7 @@
     fd = epoll_create(100);
 
     if (fd != -1) {
-        close(fd);
+        (void) close(fd);
         module = &ngx_epoll_module;
 
     } else if (ngx_errno != NGX_ENOSYS) {



More information about the nginx-devel mailing list