]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
add more debugging to dns shutdown stuff
authorwessels <>
Tue, 13 Aug 1996 05:21:29 +0000 (05:21 +0000)
committerwessels <>
Tue, 13 Aug 1996 05:21:29 +0000 (05:21 +0000)
src/dns.cc

index 265d42118957fe1dd5652cd478f98b9c5225ecf6..e68bd906b35e6dfce83e8cb61c4251c734e6d29a 100644 (file)
@@ -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,