From: phk Date: Sun, 20 Aug 2006 16:35:01 +0000 (+0000) Subject: Add some debugging X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fc873ebcf2fe83efaf75fa4bb77636b2d1200e9;p=varnish Add some debugging git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@855 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_pipe.c b/varnish-cache/bin/varnishd/cache_pipe.c index 9ce2ad66..1c3184ba 100644 --- a/varnish-cache/bin/varnishd/cache_pipe.c +++ b/varnish-cache/bin/varnishd/cache_pipe.c @@ -22,12 +22,16 @@ rdf(struct pollfd *fds, int idx) i = read(fds[idx].fd, buf, sizeof buf); if (i <= 0) { + VSL(SLT_Debug, fds[idx].fd, "Pipe Shut read(read)"); + VSL(SLT_Debug, fds[1-idx].fd, "Pipe Shut write(read)"); shutdown(fds[idx].fd, SHUT_RD); shutdown(fds[1-idx].fd, SHUT_WR); fds[idx].events = 0; } else { j = write(fds[1-idx].fd, buf, i); if (i != j) { + VSL(SLT_Debug, fds[idx].fd, "Pipe Shut write(write)"); + VSL(SLT_Debug, fds[1-idx].fd, "Pipe Shut read(write)"); shutdown(fds[idx].fd, SHUT_WR); shutdown(fds[1-idx].fd, SHUT_RD); fds[1-idx].events = 0;