r4490 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Mon Jan 25 23:05:37 CET 2010
Author: phk
Date: 2010-01-25 23:05:37 +0100 (Mon, 25 Jan 2010)
New Revision: 4490
Modified:
trunk/varnish-cache/bin/varnishd/cache_waiter_poll.c
Log:
Add a couple of asserts to be even more paranoid
Modified: trunk/varnish-cache/bin/varnishd/cache_waiter_poll.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_waiter_poll.c 2010-01-25 21:15:48 UTC (rev 4489)
+++ trunk/varnish-cache/bin/varnishd/cache_waiter_poll.c 2010-01-25 22:05:37 UTC (rev 4490)
@@ -88,6 +88,7 @@
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 @@
assert(fd < npoll);
assert(fd >= 0);
vca_pollspace((unsigned)fd);
+ assert(pollfd[fd].fd == fd);
pollfd[fd].fd = -1;
pollfd[fd].events = 0;
}
More information about the varnish-commit
mailing list