Commit 5c44c5e2 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Fix the poll-waiter after I botched it in r4445.

Fixes #625

Submitted by:	slink




git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4478 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 10c90c5d
......@@ -124,7 +124,7 @@ vca_main(void *arg)
i = read(vca_pipes[0], ss, sizeof ss);
assert(i >= 0);
assert((i % sizeof ss[0]) == 0);
for (j = 0; j * sizeof ss[0] < i; j += sizeof ss[0]) {
for (j = 0; j * sizeof ss[0] < i; j++) {
CHECK_OBJ_NOTNULL(ss[j], SESS_MAGIC);
VTAILQ_INSERT_TAIL(&sesshead, ss[j], list);
vca_poll(ss[j]->fd);
......
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