Commit 90f2bbaf authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add a couple of asserts to be even more paranoid



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4490 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent d3442672
......@@ -88,6 +88,7 @@ vca_poll(int fd)
assert(fd < npoll);
if (hpoll < fd)
hpoll = fd;
assert(pollfd[fd].fd == -1);
pollfd[fd].fd = fd;
pollfd[fd].events = POLLIN;
}
......@@ -99,6 +100,7 @@ vca_unpoll(int fd)
assert(fd < npoll);
assert(fd >= 0);
vca_pollspace((unsigned)fd);
assert(pollfd[fd].fd == fd);
pollfd[fd].fd = -1;
pollfd[fd].events = 0;
}
......
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