]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Tell other threads to stop when a fatal issue occurs.
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 3 Jul 2020 08:33:29 +0000 (10:33 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 3 Jul 2020 08:33:29 +0000 (10:33 +0200)
Theer are more spots where this should be done.

pdns/pdns_recursor.cc

index 26439271a6eff24f2ae75952e9089d1190852a90..222d8300a4da2a26fac94f92835f4322f7baaaa3 100644 (file)
@@ -4729,6 +4729,7 @@ try
   if (threadInfo.isHandler) {
     if (!primeHints()) {
       threadInfo.exitCode = EXIT_FAILURE;
+      RecursorControlChannel::stop = 1;
       g_log<<Logger::Critical<<"Priming cache failed, stopping"<<endl;
       return nullptr;
     }