Changeset 342

Show
Ignore:
Timestamp:
05/07/07 14:40:02 (2 years ago)
Author:
kindlund
Message:

Testing agent run thread… something appears to be killing the parent process.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • honeyclient/branches/exp/kindlund-filesystem/bin/StartAgent.pl

    r341 r342  
    1818our $agentState = undef; 
    1919my $tempState = undef; 
     20our $faultDetected = 0; 
    2021 
    2122print "URL: " . $URL. "\n"; 
     
    3536    } 
    3637 
    37     print "Watchdog fault detected, recovering Agent daemon.\n"; 
     38    if (!$faultDetected) { 
     39        print "Watchdog fault detected, recovering Agent daemon.\n"; 
     40        $faultDetected = 1; 
     41    } 
    3842    # XXX: Reenable this, eventually. 
    3943    #Carp::carp __PACKAGE__ . "->_watchdogFaultHandler(): Error occurred during processing.\n" . $errMsg; 
  • honeyclient/branches/exp/kindlund-filesystem/lib/HoneyClient/Agent.pm

    r341 r342  
    717717        $thread = async { 
    718718            threads->yield(); 
     719 
     720            # XXX: Fix this? 
     721            threads->detach(); # XXX: Test this. 
    719722     
    720723            # Trap all faults that may occur from these asynchronous operations. 
     
    909912            } 
    910913 
    911             threads->detach(); # XXX: Test this. 
     914            # XXX: Fix this? 
     915            #threads->detach(); # XXX: Test this. 
    912916            return; 
    913917        };