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:
David Herrmann committed 2012-09-27 19:15:28 +02:00
1 parent 1a34c00796
commit a284ce33d4
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}