From a7cad5fcb3442383b4ea9ede563f7560bfc1a70c Mon Sep 17 00:00:00 2001 From: wessels <> Date: Tue, 13 Aug 1996 05:21:29 +0000 Subject: [PATCH] add more debugging to dns shutdown stuff --- src/dns.cc | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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, -- 2.47.2