Commit d3c54aa2 authored by Artur Bergman's avatar Artur Bergman

If you attach gdb to a running varnish child, then when you tell it to...

If you attach gdb to a running varnish child, then when you tell it to continue it will abort if assertions are enabled due to poll returning with EINTR.

This just re-enters the loop.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3155 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent b919fc12
......@@ -153,6 +153,8 @@ CLI_Run(void)
pfd[0].fd = heritage.cli_in;
pfd[0].events = POLLIN;
i = poll(pfd, 1, -1);
if (i == -1 && errno == EINTR)
continue;
assert(i == 1);
if (pfd[0].revents & POLLHUP) {
fprintf(stderr,
......
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