From: wessels <> Date: Wed, 14 Oct 1998 22:09:30 +0000 (+0000) Subject: FMR bug X-Git-Tag: SQUID_3_0_PRE1~2578 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14e87a44e450c0e74ace6210e1de91a2d825496e;p=thirdparty%2Fsquid.git FMR bug --- diff --git a/src/helper.cc b/src/helper.cc index 3e07dbcfad..6ff48935a5 100644 --- a/src/helper.cc +++ b/src/helper.cc @@ -191,15 +191,15 @@ helperStateFree(int fd, void *data) if (srv->wfd != srv->rfd) comm_close(srv->wfd); dlinkDelete(&srv->link, &hlp->servers); - cbdataFree(srv); hlp->n_running--; assert(hlp->n_running >= 0); - if (shutting_down || reconfiguring) - return; - debug(34, 0) ("WARNING: %s #%d (FD %d) exited\n", - hlp->id_name, srv->index + 1, fd); - if (hlp->n_running < hlp->n_to_start / 2) - fatalf("Too few %s processes are running", hlp->id_name); + if (!shutting_down && !reconfiguring) { + debug(34, 0) ("WARNING: %s #%d (FD %d) exited\n", + hlp->id_name, srv->index + 1, fd); + if (hlp->n_running < hlp->n_to_start / 2) + fatalf("Too few %s processes are running", hlp->id_name); + } + cbdataFree(srv); } static void