From: nobu.nokada@... Date: 2002-04-19T12:30:57+09:00 Subject: Re: resolv.rb Bug Hi, At Fri, 19 Apr 2002 11:57:18 +0900, Tanaka Akira wrote: > > Sorry, I was wrong completely. Try with following patch. > > It causes an error with -d. Oops, sender thread must be killed. --- resolv.rb~ Fri Apr 19 11:36:35 2002 +++ resolv.rb Fri Apr 19 12:29:55 2002 @@ -509,6 +509,13 @@ class Resolv def close - @sock.close if @sock - @sock = nil + thread, sock, @thread, @sock = @thread, @sock + begin + if thread + thread.kill + thread.join + end + ensure + sock.close if sock + end end -- Nobu Nakada