From cb58e78eaac941cc042a71e049568b2dae611e4b Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Tue, 7 Jul 2020 17:36:22 +0200 Subject: [PATCH] Revert "core: io wait - unhash in case delete operation fails because of EBADF" This reverts commit 60119faef5282b135ef7c972d15e1017ca26815a. --- src/core/io_wait.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/core/io_wait.h b/src/core/io_wait.h index ddc7e80324d..251c65fdffc 100644 --- a/src/core/io_wait.h +++ b/src/core/io_wait.h @@ -669,12 +669,6 @@ inline static int io_watch_del(io_wait_h* h, int fd, int idx, int flags) if (errno==EAGAIN) goto again_epoll; LM_ERR("removing fd %d from epoll list failed: %s [%d]\n", fd, strerror(errno), errno); - if (unlikely(errno==EBADF)) { - LM_ERR("unhashing of invalid fd - %d (epfd %d)\n", fd, - h->h->epfd); - unhash_fd_map(e); - h->fd_no--; - } goto error; } #ifdef EPOLL_NO_CLOSE_BUG