shs.d_csp->worker(shs.d_id, shs.d_fd);
return 0;
}
-catch(PDNSException& pe) {
- L<<Logger::Error<<"Signing thread died with error "<<pe.reason<<endl;
-}
-catch(std::exception& e) {
- L<<Logger::Error<<"Signing thread died with error "<<e.what()<<endl;
+catch(...) {
+ L<<Logger::Error<<"unknown exception in signing thread occurred"<<endl;
return 0;
}
}
close(fd);
}
+catch(PDNSException& pe)
+{
+ L<<Logger::Error<<"Signing thread died because of PDNSException: "<<pe.reason<<endl;
+ close(fd);
+}
catch(std::exception& e)
{
L<<Logger::Error<<"Signing thread died because of std::exception: "<<e.what()<<endl;