}
catch(PDNSException &e) {
L<<Logger::Error<<"Unparseable IP in "<<listname<<". Error: "<<e.reason<<endl;
- exit(1);
+ _exit(1);
}
}
}
}
catch(PDNSException &e) {
L<<Logger::Error<<"Unparseable IP in allow-notify-from. Error: "<<e.reason<<endl;
- exit(1);
+ _exit(1);
}
pthread_t tid;
}
catch(PDNSException &e) {
L<<Logger::Error<<"Unparseable IP in only-notify. Error: "<<e.reason<<endl;
- exit(1);
+ _exit(1);
}
loadArgsIntoSet("also-notify", d_alsoNotify);
catch(PDNSException &ae) {
L<<Logger::Error<<"Exiting because communicator thread died with error: "<<ae.reason<<endl;
Utility::sleep(1);
- exit(1);
+ _exit(1);
}
catch(std::exception &e) {
L<<Logger::Error<<"Exiting because communicator thread died with STL error: "<<e.what()<<endl;
- exit(1);
+ _exit(1);
}
catch( ... )
{
L << Logger::Error << "Exiting because communicator caught unknown exception." << endl;
- exit(1);
+ _exit(1);
}
}
L << Logger::Error << "Caught unknown exception." << endl;
}
L<<Logger::Error<<"Exiting because DNS proxy failed"<<endl;
- exit(1);
+ _exit(1);
}
DNSProxy::~DNSProxy() {
int tmp=1;
if(setsockopt(s,SOL_SOCKET,SO_REUSEADDR,(char*)&tmp,sizeof tmp)<0) {
L<<Logger::Error<<"Setsockopt failed"<<endl;
- exit(1);
+ _exit(1);
}
if (::arg().asNum("tcp-fast-open") > 0) {
int tmp=1;
if(setsockopt(s,SOL_SOCKET,SO_REUSEADDR,(char*)&tmp,sizeof tmp)<0) {
L<<Logger::Error<<"Setsockopt failed"<<endl;
- exit(1);
+ _exit(1);
}
if (::arg().asNum("tcp-fast-open") > 0) {
if(errno==EMFILE) {
L<<Logger::Error<<"TCP handler out of filedescriptors, exiting, won't recover from this"<<endl;
- exit(1);
+ _exit(1);
}
}
else {
catch(...) {
L<<Logger::Error<<"TCPNameserver dying because of an unexpected fatal error"<<endl;
}
- exit(1); // take rest of server with us
+ _exit(1); // take rest of server with us
}
catch(...) {
L<<Logger::Error<<"Unknown exception in main webserver thread"<<endl;
}
- exit(1);
+ _exit(1);
}
}
catch(...) {
L<<Logger::Error<<"Webserver statThread caught an exception, dying"<<endl;
- exit(1);
+ _exit(1);
}
}
}
catch(...) {
L<<Logger::Error<<"AuthWebServer thread caught an exception, dying"<<endl;
- exit(1);
+ _exit(1);
}
}