Changeset 1518

Show
Ignore:
Timestamp:
02/08/10 21:24:06 (5 weeks ago)
Author:
ahu
Message:

remove --fork!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/pdns_recursor.cc

    r1512 r1518  
    658658{ 
    659659  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   } 
    664660  s_rcc.listen(sockname); 
    665661} 
     
    16421638    unlink(s_pidfname.c_str()); // remove possible old pid file  
    16431639   
    1644 #ifndef WIN32 
    1645   if(::arg().mustDo("fork")) { 
    1646     fork(); 
    1647     L<<Logger::Warning<<"This is forked pid "<<getpid()<<endl; 
    1648   } 
    1649 #endif 
    1650  
    16511640#ifndef WIN32 
    16521641  if(::arg().mustDo("daemon")) { 
     
    19141903    ::arg().set("dont-query", "If set, do not query these netmasks for DNS data")=LOCAL_NETS;  
    19151904    ::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"; 
    19171905    ::arg().set("spoof-nearmiss-max", "If non-zero, assume spoofing after this many near misses")="20"; 
    19181906    ::arg().set("single-socket", "If set, only use a single socket for outgoing queries")="off";