From: wessels <> Date: Tue, 13 Aug 1996 05:21:29 +0000 (+0000) Subject: add more debugging to dns shutdown stuff X-Git-Tag: SQUID_3_0_PRE1~5979 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a7cad5fcb3442383b4ea9ede563f7560bfc1a70c;p=thirdparty%2Fsquid.git add more debugging to dns shutdown stuff --- diff --git a/src/dns.cc b/src/dns.cc index 265d421189..e68bd906b3 100644 --- a/src/dns.cc +++ b/src/dns.cc @@ -1,5 +1,5 @@ /* - * $Id: dns.cc,v 1.2 1996/07/25 07:10:31 wessels Exp $ + * $Id: dns.cc,v 1.3 1996/08/12 23:21:29 wessels Exp $ * * DEBUG: section 34 Dnsserver interface * AUTHOR: Harvest Derived @@ -270,12 +270,18 @@ void dnsShutdownServers() for (k = 0; k < NDnsServersAlloc; k++) { dnsData = *(dns_child_table + k); - if (!(dnsData->flags & DNS_FLAG_ALIVE)) + if (!(dnsData->flags & DNS_FLAG_ALIVE)) { + debug(34, 3, "dnsShutdownServers: #%d is NOT ALIVE.\n", dnsData->id); continue; - if (dnsData->flags & DNS_FLAG_BUSY) + } + if (dnsData->flags & DNS_FLAG_BUSY) { + debug(34, 3, "dnsShutdownServers: #%d is BUSY.\n", dnsData->id); continue; - if (dnsData->flags & DNS_FLAG_CLOSING) + } + if (dnsData->flags & DNS_FLAG_CLOSING) { + debug(34, 3, "dnsShutdownServers: #%d is CLOSING.\n", dnsData->id); continue; + } debug(34, 3, "dnsShutdownServers: sending '$shutdown' to dnsserver #%d\n", dnsData->id); debug(34, 3, "dnsShutdownServers: --> FD %d\n", dnsData->outpipe); comm_write(dnsData->outpipe,