One of potentially many threading issues with ruby 1.9
git-svn-id: file:///home/svn/framework3/trunk@6590 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
166e1ebf2c
commit
6a76e5d0a2
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue