Changeset 988 for trunk/pdns/pdns/pdns_recursor.cc
- Timestamp:
- 03/25/07 13:33:06 (6 years ago)
- Files:
-
- 1 modified
-
trunk/pdns/pdns/pdns_recursor.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/pdns_recursor.cc
r972 r988 396 396 } 397 397 398 398 string s_pidfname; 399 399 static void writePid(void) 400 400 { 401 s tringfname=::arg()["socket-dir"]+"/"+s_programname+".pid";402 ofstream of( fname.c_str());401 s_pidfname=::arg()["socket-dir"]+"/"+s_programname+".pid"; 402 ofstream of(s_pidfname.c_str()); 403 403 if(of) 404 404 of<< Utility::getpid() <<endl; 405 405 else 406 L<<Logger::Error<<"Requested to write pid for "<<Utility::getpid()<<" to "<< fname<<" failed: "<<strerror(errno)<<endl;406 L<<Logger::Error<<"Requested to write pid for "<<Utility::getpid()<<" to "<<s_pidfname<<" failed: "<<strerror(errno)<<endl; 407 407 } 408 408