Commit 509b1a90 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Fix the same issue as in the kqueue acceptor: By the time we get

here the filedescriptor may already be closed, so accept EBADF.

Reported by:	Xing Li <xing@litespeedtech.com>


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@918 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent b145eecc
......@@ -37,7 +37,10 @@ vca_add(int fd, void *data)
static void
vca_del(int fd)
{
AZ(epoll_ctl(epfd, EPOLL_CTL_DEL, fd, NULL));
int i;
i = epoll_ctl(epfd, EPOLL_CTL_DEL, fd, NULL);
assert(i == 0 || errno == EBADF);
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment