]> git.ipfire.org Git - thirdparty/pdns.git/commit
rec: Handle failure to start the web server more gracefully 9812/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 3 Dec 2020 08:34:08 +0000 (09:34 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 3 Dec 2020 08:34:08 +0000 (09:34 +0100)
commitce715f38fcedf752220cd5056e1a3945330041fd
treef83dfc02c0ebfe8b48c4e71a3a8d3087e135dab3
parent1fc9fe3913a93aefe4ea77f6615fe6fb8d7681ac
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.
pdns/pdns_recursor.cc
pdns/ws-recursor.cc