mirror of
https://github.com/nginx/nginx.git
synced 2026-05-13 17:46:53 +00:00
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.
This commit is contained in:
parent
66e9525e84
commit
2af80d5fab
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue