]> err.no Git - varnish/commitdiff
Don't assert that close() returns 0, it won't when the remote end closes
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 19 Oct 2007 13:58:12 +0000 (13:58 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 19 Oct 2007 13:58:12 +0000 (13:58 +0000)
the connection first.  This fixes #168.

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

varnish-cache/bin/varnishd/mgt_cli.c

index e80dbc5b8c0ca8beb8bb5ee108f93a06e7e95692..c4df76281011bc5c9c8dd7074c80556cb7547f1d 100644 (file)
@@ -346,10 +346,10 @@ mgt_cli_callback(const struct ev *e, int what)
 cli_close:
        vsb_delete(cp->cli->sb);
        free(cp->buf);
-       AZ(close(cp->fdi));
+       (void)close(cp->fdi);
        if (cp->fdi == 0)
                assert(open("/dev/null", O_RDONLY) == 0);
-       AZ(close(cp->fdo));
+       (void)close(cp->fdo);
        if (cp->fdo == 1) {
                assert(open("/dev/null", O_WRONLY) == 1);
                close(2);