Changeset 346
- Timestamp:
- 05/07/07 15:36:32 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
honeyclient/branches/exp/kindlund-filesystem/lib/HoneyClient/Agent.pm
r345 r346 721 721 threads->yield(); 722 722 723 # XXX: Fix this?724 threads->detach(); # XXX: Test this.725 726 723 # Trap all faults that may occur from these asynchronous operations. 727 724 eval { … … 917 914 } 918 915 919 # XXX: Fix this? 920 #threads->detach(); # XXX: Test this. 916 # This threads->detach() call needs to be at the end of the 917 # thread code, because by calling this, we signal that the 918 # child thread is no longer running and thus the 919 # thread->is_running() would return false. 920 threads->detach(); 921 921 # XXX: Debugging, remove eventually. 922 922 print "About to return out of child thread.\n"; … … 929 929 # Set the valid thread ID. 930 930 if ($thread->is_running()) { 931 # XXX: Debugging, remove eventually. 932 print "Thread ID = " . $thread->tid() . "\n"; 931 933 $data->{$driverName}->{'thread_id'} = $thread->tid(); 932 934 } else { 935 # XXX: Debugging, remove eventually. 936 print "Thread ID = undef\n"; 933 937 $data->{$driverName}->{'thread_id'} = undef; 934 938 }
