From c9198339a21b2df40f3088ffab7827f881b2b3bf Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 28 Aug 2018 11:37:40 +0200 Subject: [PATCH] ixfrdist: Break out of the domain updates loop if we are exiting --- pdns/ixfrdist.cc | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.40.0