One of potentially many threading issues with ruby 1.9

git-svn-id: file:///home/svn/framework3/trunk@6590 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2009-05-29 03:18:00 +00:00
parent 166e1ebf2c
commit 6a76e5d0a2
1 changed files with 3 additions and 2 deletions

View File

@ -49,8 +49,9 @@ def run
while (tl.length < datastore['THREADS'])
ip = ar.next_ip
break if not ip
tl << Thread.new do
targ = ip.dup
tl << Thread.new(ip.dup) do |tip|
targ = tip
nmod = self.replicant
nmod.datastore['RHOST'] = targ