From: phk Date: Tue, 17 Jun 2008 10:14:23 +0000 (+0000) Subject: Don't assert that the close succeeds, we may already have closed the telnet X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b47846242524d7b01a75cf853b142ca2376e793;p=varnish Don't assert that the close succeeds, we may already have closed the telnet socket. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2725 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/mgt_cli.c b/varnish-cache/bin/varnishd/mgt_cli.c index b37037e1..972b3d71 100644 --- a/varnish-cache/bin/varnishd/mgt_cli.c +++ b/varnish-cache/bin/varnishd/mgt_cli.c @@ -392,7 +392,7 @@ telnet_close_one(int fd) if (tn->fd != fd) continue; VTAILQ_REMOVE(&telnets, tn, list); - AZ(close(tn->fd)); + (void)close(tn->fd); free(tn); break; }