Show
Ignore:
Timestamp:
07/19/10 16:19:39 (3 years ago)
Author:
ahu
Message:

make sure speedtest works on solaris too - it needs the virtual alarm to be re-armed after it went off

Files:
1 modified

Legend:

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

    r1470 r1670  
    2727  it.it_interval.tv_usec=0; 
    2828 
     29  signal(SIGVTALRM, alarmHandler); 
    2930  setitimer(ITIMER_VIRTUAL, &it, 0); 
    30  
    31  
     31   
    3232  unsigned int runs=0; 
    3333  g_stop=false; 
     
    539539          negindic=true; 
    540540        } 
    541         else if(i->d_place==DNSResourceRecord::ANSWER && iequals(i->qname, qname) && i->qtype.getCode()==QType::CNAME && (!(qtype==QType(QType::CNAME)))) { 
     541        else if(i->d_place==DNSResourceRecord::ANSWER && pdns_iequals(i->qname, qname) && i->qtype.getCode()==QType::CNAME && (!(qtype==QType(QType::CNAME)))) { 
    542542          ret.push_back(*i); 
    543543          newtarget=i->content; 
     
    659659  { 
    660660      static string a("www.ds9a.nl"), b("www.lwn.net"); 
    661       bool ret = iequals(a, b); 
     661      bool ret = boost::iequals(a, b); 
    662662  } 
    663663 
     
    714714{ 
    715715  reportAllTypes(); 
    716   signal(SIGVTALRM, alarmHandler); 
    717    
    718716  doRun(NOPTest()); 
    719    
     717 
    720718  doRun(IEqualsTest()); 
    721719  doRun(MyIEqualsTest());