Mercurial > hg > nginx
comparison src/event/ngx_event.c @ 4810:e1d11fb9a71f
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.
author | Andrey Belov <defan@nginx.com> |
---|---|
date | Tue, 07 Aug 2012 13:57:04 +0000 |
parents | b0b93b2a1f8a |
children | 39c597272c8d |
comparison
equal
deleted
inserted
replaced
4794:4163fb9dcfcb | 4810:e1d11fb9a71f |
---|---|
1212 #if (NGX_HAVE_EPOLL) && !(NGX_TEST_BUILD_EPOLL) | 1212 #if (NGX_HAVE_EPOLL) && !(NGX_TEST_BUILD_EPOLL) |
1213 | 1213 |
1214 fd = epoll_create(100); | 1214 fd = epoll_create(100); |
1215 | 1215 |
1216 if (fd != -1) { | 1216 if (fd != -1) { |
1217 close(fd); | 1217 (void) close(fd); |
1218 module = &ngx_epoll_module; | 1218 module = &ngx_epoll_module; |
1219 | 1219 |
1220 } else if (ngx_errno != NGX_ENOSYS) { | 1220 } else if (ngx_errno != NGX_ENOSYS) { |
1221 module = &ngx_epoll_module; | 1221 module = &ngx_epoll_module; |
1222 } | 1222 } |