From: hno <> Date: Sun, 29 Sep 2002 18:08:48 +0000 (+0000) Subject: Bugfix: Helper shutdown problems if a dual communication channel X-Git-Tag: SQUID_3_0_PRE1~722 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=357099e537335574c6e176ef4cfe508dd3086e07;p=thirdparty%2Fsquid.git Bugfix: Helper shutdown problems if a dual communication channel (i.e. pipe()) is used for the helper communication. --- diff --git a/src/helper.cc b/src/helper.cc index ed1c10df23..1503d63074 100644 --- a/src/helper.cc +++ b/src/helper.cc @@ -1,6 +1,6 @@ /* - * $Id: helper.cc,v 1.46 2002/09/07 23:11:04 hno Exp $ + * $Id: helper.cc,v 1.47 2002/09/29 12:08:48 hno Exp $ * * DEBUG: section 84 Helper process maintenance * AUTHOR: Harvest Derived? @@ -507,7 +507,6 @@ helperShutdown(helper * hlp) { dlink_node *link = hlp->servers.head; while (link) { - int wfd; helper_server *srv; srv = link->data; link = link->next; @@ -528,9 +527,10 @@ helperShutdown(helper * hlp) continue; } srv->flags.closing = 1; - wfd = srv->wfd; - srv->wfd = -1; - comm_close(wfd); + /* the rest of the details is dealt with in the helperServerFree + * close handler + */ + comm_close(srv->rfd); } } @@ -539,7 +539,6 @@ helperStatefulShutdown(statefulhelper * hlp) { dlink_node *link = hlp->servers.head; helper_stateful_server *srv; - int wfd; while (link) { srv = link->data; link = link->next; @@ -570,9 +569,10 @@ helperStatefulShutdown(statefulhelper * hlp) continue; } srv->flags.closing = 1; - wfd = srv->wfd; - srv->wfd = -1; - comm_close(wfd); + /* the rest of the details is dealt with in the helperStatefulServerFree + * close handler + */ + comm_close(srv->rfd); } }