Permalink
Browse files

prevent crash after --list-modules

Probably caused by calls to destructors in dynamically loaded libraries. Just stop calling them.

(cherry picked from commit 44ac597)
  • Loading branch information...
1 parent 7798aa3 commit 8e30209180439daf6da0d73b51107aad5c651881 @rubenk rubenk committed May 9, 2015
Showing with 2 additions and 2 deletions.
  1. +2 −2 pdns/receiver.cc
View
@@ -503,11 +503,11 @@ int main(int argc, char **argv)
if(::arg().mustDo("list-modules")) {
vector<string>modules=BackendMakers().getModules();
- cerr<<"Modules available:"<<endl;
+ cout<<"Modules available:"<<endl;
for(vector<string>::const_iterator i=modules.begin();i!=modules.end();++i)
cout<<*i<<endl;
- exit(99);
+ _exit(99);
}
if(!::arg().asNum("local-port")) {

0 comments on commit 8e30209

Please sign in to comment.