]> err.no Git - varnish/commitdiff
Drop the asserts around shutdown(2), there are a number of
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 8 Oct 2007 10:25:47 +0000 (10:25 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 8 Oct 2007 10:25:47 +0000 (10:25 +0000)
legitimate error conditions.

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

varnish-cache/bin/varnishd/cache_pipe.c

index 14913dc76cc276f8f119e431fdbfa4f31234592e..9eebee2bd0f5146a09af52e1bbb5d8678c889abe 100644 (file)
@@ -112,25 +112,25 @@ PipeSession(struct sess *sp)
                if (i < 1) 
                        break;
                if (fds[0].revents && rdf(vc->fd, sp->fd)) {
-                       AZ(shutdown(vc->fd, SHUT_RD));
-                       AZ(shutdown(sp->fd, SHUT_WR));
+                       shutdown(vc->fd, SHUT_RD);
+                       shutdown(sp->fd, SHUT_WR);
                        fds[0].events = 0;
                        fds[0].fd = -1;
                }
                if (fds[1].revents && rdf(sp->fd, vc->fd)) {
-                       AZ(shutdown(sp->fd, SHUT_RD));
-                       AZ(shutdown(vc->fd, SHUT_WR));
+                       shutdown(sp->fd, SHUT_RD);
+                       shutdown(vc->fd, SHUT_WR);
                        fds[1].events = 0;
                        fds[1].fd = -1;
                }
        }
        if (fds[0].fd >= 0) {
-               AZ(shutdown(vc->fd, SHUT_RD));
-               AZ(shutdown(sp->fd, SHUT_WR));
+               shutdown(vc->fd, SHUT_RD);
+               shutdown(sp->fd, SHUT_WR);
        }
        if (fds[1].fd >= 0) {
-               AZ(shutdown(sp->fd, SHUT_RD));
-               AZ(shutdown(vc->fd, SHUT_WR));
+               shutdown(sp->fd, SHUT_RD);
+               shutdown(vc->fd, SHUT_WR);
        }
        vca_close_session(sp, "pipe");
        VBE_ClosedFd(sp->wrk, vc);