Changeset 1576
- Timestamp:
- 05/12/08 15:12:26 (4 months ago)
- Files:
-
- honeyclient/trunk/lib/HoneyClient/Manager.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
honeyclient/trunk/lib/HoneyClient/Manager.pm
r1559 r1576 769 769 my @THREAD_POOL; 770 770 771 # TODO: Fix this. 772 my $foo = async { 773 threads->detach(); 774 771 775 # Create the cloned VMs. 772 776 for (my $counter = 0; $counter < getVar(name => "num_simultaneous_clones"); $counter++) { … … 776 780 Carp::croak "Unable to create worker thread! Shutting down."; 777 781 } 782 778 783 # Push thread onto thread pool. 779 784 push(@THREAD_POOL, $thread); 780 } 785 786 # TODO: Fix this. 787 sleep(300); 788 } 789 790 # TODO: Fix this. 791 }; 781 792 782 793 # Register the host system with the database, if need be. … … 837 848 for (my $counter = 0; $counter < getVar(name => "num_simultaneous_clones"); $counter++) { 838 849 my $thread = $THREAD_POOL[$counter]; 839 if ( !$thread->is_running()) {850 if (defined($thread) && !$thread->is_running()) { 840 851 $LOG->error("Thread ID (" . $thread->tid() . "): Unexpectedly terminated."); 841 852 Carp::croak "Thread ID (" . $thread->tid() . "): Unexpectedly terminated.";
