[master] 4a2d55b Poll on HUP rather than OUT to detect worker process failure, this works better with Solaris
Poul-Henning Kamp
phk at varnish-cache.org
Fri Feb 11 13:03:20 CET 2011
commit 4a2d55b3e3387c6571f7c900f470a1d7ba3d9dc4
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Fri Feb 11 12:02:36 2011 +0000
Poll on HUP rather than OUT to detect worker process failure,
this works better with Solaris
diff --git a/bin/varnishtest/vtc_varnish.c b/bin/varnishtest/vtc_varnish.c
index 7e59311..30ab828 100644
--- a/bin/varnishtest/vtc_varnish.c
+++ b/bin/varnishtest/vtc_varnish.c
@@ -304,7 +304,7 @@ varnish_launch(struct varnish *v)
fd[0].fd = v->cli_fd;
fd[0].events = POLLIN;
fd[1].fd = v->fds[0];
- fd[1].events = POLLOUT;
+ fd[1].events = POLLHUP;
i = poll(fd, 2, 10000);
vtc_log(v->vl, 4, "CLIPOLL %d 0x%x 0x%x",
i, fd[0].revents, fd[1].revents);
More information about the varnish-commit
mailing list