Changeset 1518
- Timestamp:
- 02/08/10 21:24:06 (5 weeks ago)
- Files:
-
- 1 modified
-
trunk/pdns/pdns/pdns_recursor.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/pdns_recursor.cc
r1512 r1518 658 658 { 659 659 string sockname=::arg()["socket-dir"]+"/pdns_recursor.controlsocket"; 660 if(::arg().mustDo("fork")) {661 sockname+="."+lexical_cast<string>(Utility::getpid());662 L<<Logger::Warning<<"Forked control socket name: "<<sockname<<endl;663 }664 660 s_rcc.listen(sockname); 665 661 } … … 1642 1638 unlink(s_pidfname.c_str()); // remove possible old pid file 1643 1639 1644 #ifndef WIN321645 if(::arg().mustDo("fork")) {1646 fork();1647 L<<Logger::Warning<<"This is forked pid "<<getpid()<<endl;1648 }1649 #endif1650 1651 1640 #ifndef WIN32 1652 1641 if(::arg().mustDo("daemon")) { … … 1914 1903 ::arg().set("dont-query", "If set, do not query these netmasks for DNS data")=LOCAL_NETS; 1915 1904 ::arg().set("max-tcp-per-client", "If set, maximum number of TCP sessions per client (IP address)")="0"; 1916 ::arg().set("fork", "If set, fork the daemon for possible double performance")="no";1917 1905 ::arg().set("spoof-nearmiss-max", "If non-zero, assume spoofing after this many near misses")="20"; 1918 1906 ::arg().set("single-socket", "If set, only use a single socket for outgoing queries")="off";