]> err.no Git - varnish/commitdiff
If you attach gdb to a running varnish child, then when you tell it to continue it...
authorsky <sky@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 2 Sep 2008 17:54:33 +0000 (17:54 +0000)
committersky <sky@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 2 Sep 2008 17:54:33 +0000 (17:54 +0000)
This just re-enters the loop.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3155 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_cli.c

index f437edb73a01d7b24c67ae82aa4fcfcf965181ed..7bb8ec8ced967c815428510c2a7c0e9e3a78f3a9 100644 (file)
@@ -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,