From 1fc873ebcf2fe83efaf75fa4bb77636b2d1200e9 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 20 Aug 2006 16:35:01 +0000 Subject: [PATCH] Add some debugging git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@855 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_pipe.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.39.5