Commit 4a2d55b3 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Poll on HUP rather than OUT to detect worker process failure,

this works better with Solaris
parent 36a303da
......@@ -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);
......
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