Changeset 713 for trunk/pdns/pdns/pdns_recursor.cc
- Timestamp:
- 04/16/06 22:10:21 (7 years ago)
- Files:
-
- 1 modified
-
trunk/pdns/pdns/pdns_recursor.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/pdns_recursor.cc
r710 r713 1129 1129 #endif 1130 1130 1131 FDMultiplexer* getMultiplexer() 1132 { 1133 FDMultiplexer* ret; 1134 for(FDMultiplexer::FDMultiplexermap_t::const_iterator i = FDMultiplexer::getMultiplexerMap().begin(); 1135 i != FDMultiplexer::getMultiplexerMap().end(); ++i) { 1136 try { 1137 ret=i->second(); 1138 L<<Logger::Error<<"Enabled '"<<ret->getName()<<"' multiplexer"<<endl; 1139 return ret; 1140 } 1141 catch(...) 1142 {} 1143 } 1144 L<<Logger::Error<<"No working multiplexer found!"<<endl; 1145 exit(1); 1146 } 1147 1131 1148 int main(int argc, char **argv) 1132 1149 { … … 1190 1207 1191 1208 L.setName("pdns_recursor"); 1192 g_fdm=getMultiplexer(); 1209 1193 1210 1194 1211 L<<Logger::Warning<<"PowerDNS recursor "<<VERSION<<" (C) 2001-2006 PowerDNS.COM BV ("<<__DATE__", "__TIME__; … … 1203 1220 "according to the terms of the GPL version 2."<<endl; 1204 1221 1222 g_fdm=getMultiplexer(); 1205 1223 1206 1224 if(!::arg()["allow-from"].empty()) {