From: phk Date: Fri, 23 Nov 2007 10:47:16 +0000 (+0000) Subject: Also accept the undocumented ENOTCONN error return from close(2). X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18e9fbf87e5c33c4a8bbd409f14445df71a24ba3;p=varnish Also accept the undocumented ENOTCONN error return from close(2). See also http://www.version2.dk/artikel/5153 if you read danish. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2285 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_backend_simple.c b/varnish-cache/bin/varnishd/cache_backend_simple.c index a1050365..d2519342 100644 --- a/varnish-cache/bin/varnishd/cache_backend_simple.c +++ b/varnish-cache/bin/varnishd/cache_backend_simple.c @@ -281,7 +281,7 @@ bes_ClosedFd(struct worker *w, struct vbe_conn *vc) assert(vc->fd >= 0); WSL(w, SLT_BackendClose, vc->fd, "%s", vc->backend->vcl_name); i = close(vc->fd); - assert(i == 0 || errno == ECONNRESET); + assert(i == 0 || errno == ECONNRESET || errno == ENOTCONN); vc->fd = -1; VBE_DropRef(vc->backend); vc->backend = NULL;