Changeset 378

Show
Ignore:
Timestamp:
05/25/07 18:21:01 (1 year ago)
Author:
kindlund
Message:

Starting to get better…

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • honeyclient/branches/exp/kindlund-filesystem/lib/HoneyClient/Agent.pm

    r377 r378  
    689689    } else { 
    690690        print "Thread is NOT running.\n"; 
    691         print "Joining dead thread...\n"; 
    692 # XXX: Check to see if this works. 
    693         threads->object($tid)->join(); 
    694         print "Finished dead thread join!\n"; 
    695691    } 
    696692} else { 
     
    10101006    } 
    10111007 
    1012     # This threads->detach() call needs to be at the end of the 
    1013     # thread code, because by calling this, we signal that the 
    1014     # child thread is no longer running and thus the 
    1015     # thread->is_running() would return false. 
    1016     #threads->detach(); 
    10171008    # XXX: Debugging, remove eventually.  
    10181009    print "About to return out of child thread.\n"; 
    1019     #return; 
     1010    if (!threads->is_detached()) { 
     1011        threads->detach(); 
     1012    } 
     1013    threads->exit(); 
    10201014} 
    10211015