]> err.no Git - varnish/commitdiff
Add some debugging
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 20 Aug 2006 16:35:01 +0000 (16:35 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 20 Aug 2006 16:35:01 +0000 (16:35 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@855 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_pipe.c

index 9ce2ad665e17e4c10e52dc29f635bdbe2126a8bb..1c3184bae9dfc695968faf064660c9e7466c7967 100644 (file)
@@ -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;