From: "James F. Hranicky" Date: 2004-01-24T00:57:37+09:00 Subject: Re: Problems with resolv.rb && Queue/Thread On Sat, 24 Jan 2004 00:44:58 +0900 "Robert Klemme" wrote: > Not exactly. But your code has a subtle error. It should read > > ARGV.each { |ipaddr| > threads << Thread.new( ipaddr ) { |local_ipaddr| > .... > IP4NetAddr.new(local_ipaddr).all { |ip| > .... > > Otherwise the threads access the variable defined in the ARGV.each block > and thus errors might occur since you're not accessing the value you think > you are. I tried it and got this with 1.8: /usr/local/lib/ruby/1.8/resolv.rb:539:in `delete': undefined method `queue' for 6:Fixnum (NoMethodError) 1.9 seems unchanged. Thanks...I'll keep scanning for un-thread-safe code. Jim