Commit 683cc929 authored by Tollef Fog Heen's avatar Tollef Fog Heen

varnishadm: Handle EINTR from poll

poll can return EINTR, so we need to handle that.

Fixes: #1166
parent 8a2fdce4
......@@ -230,6 +230,9 @@ pass(int sock)
fds[1].events = POLLIN;
while (1) {
i = poll(fds, 2, -1);
if (i == -1 && errno == EINTR) {
continue;
}
assert(i > 0);
if (fds[0].revents & POLLIN) {
/* Get rid of the prompt, kinda hackish */
......
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