From: Remi Gacogne Date: Tue, 28 Aug 2018 09:37:40 +0000 (+0200) Subject: ixfrdist: Break out of the domain updates loop if we are exiting X-Git-Tag: dnsdist-1.3.3~143^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9198339a21b2df40f3088ffab7827f881b2b3bf;p=pdns ixfrdist: Break out of the domain updates loop if we are exiting --- diff --git a/pdns/ixfrdist.cc b/pdns/ixfrdist.cc index 7a4d70181..7ed9c8f53 100644 --- a/pdns/ixfrdist.cc +++ b/pdns/ixfrdist.cc @@ -281,6 +281,11 @@ void updateThread(const string& workdir, const uint16_t& keep, const uint16_t& a } time_t now = time(nullptr); for (const auto &domainConfig : g_domainConfigs) { + + if (g_exiting) { + break; + } + DNSName domain = domainConfig.first; shared_ptr current_soa; const auto& zoneInfo = getCurrentZoneInfo(domain);