eloop: don't warn when removing bad fds from epoll-set
People might want to close file-descriptors before destroying the ev_fd object if they actually have no direct control of it. For instance if used through a library. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
1 parent
1a34c00796
commit
a284ce33d4
1 file changed
+1
-1
+1
-1
@@ -1166,7 +1166,7 @@ static void fd_epoll_remove(struct ev_fd *fd)
|
||||
return;
|
||||
|
||||
ret = epoll_ctl(fd->loop->efd, EPOLL_CTL_DEL, fd->fd, NULL);
|
||||
if (ret)
|
||||
if (ret && errno != EBADF)
|
||||
llog_warning(fd, "cannot remove fd %d from epoll set (%d): %m",
|
||||
fd->fd, errno);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user