]> git.ipfire.org Git - thirdparty/pdns.git/commit
rec: Handle failure to start the web server more gracefully 10199/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 3 Dec 2020 08:34:08 +0000 (09:34 +0100)
committerOtto <otto.moerbeek@open-xchange.com>
Fri, 19 Mar 2021 13:29:00 +0000 (14:29 +0100)
commite1c0d385a2723d65a6562feaae1a59c2834970bb
treeddeef2cd8f6dfb2986b6dc45e79658aab410fae0
parent180ec9bc79af14ff622ab5ef911b879e88258cec
rec: Handle failure to start the web server more gracefully

At this point we already have several threads so calling exit()
will cause problem by trying to destruct objects that are in use
by other threads, so call _exit() instead.
Also mention the web server in the error message so that the root
cause is easier to identify.

(cherry picked from commit ce715f38fcedf752220cd5056e1a3945330041fd)
pdns/pdns_recursor.cc
pdns/ws-recursor.cc