Show
Ignore:
Timestamp:
04/10/06 12:19:35 (4 years ago)
Author:
ahu
Message:

implement very simple SMP support

Files:
1 modified

Legend:

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

    r633 r672  
    3232{ 
    3333  arg().set("config-dir","Location of configuration directory (pdns.conf)")=SYSCONFDIR; 
     34 
    3435  arg().set("socket-dir","Where the controlsocket will live")=LOCALSTATEDIR; 
     36  arg().set("socket-pid","When controlling multiple recursors, the target pid")=""; 
     37 
    3538  arg().setCmd("help","Provide this helpful message"); 
    3639 
     
    5053 
    5154  RecursorControlChannel rccS; 
    52   rccS.connect(arg()["socket-dir"], "pdns_recursor.controlsocket"); 
     55  string sockname="pdns_recursor.controlsocket"; 
     56  if(!arg()["socket-pid"].empty()) 
     57    sockname+="."+arg()["socket-pid"]; 
     58 
     59  rccS.connect(arg()["socket-dir"], sockname); 
    5360 
    5461  const vector<string>&commands=arg().getCommands();