From: Joel VanderWerf Date: 2009-02-24T09:21:06+09:00 Subject: Re: Thread Deadlock on Ruby 1.8.7 Jayce Meade wrote: > when 'quit' > say(c, 'Exiting....') > @joined.each { |chan| log(chan, "\n----- Left #{chan} at #{Time.now.strftime("%I:%M:%S %p")} (Quit command was used) -----\n")} # < Logs the quit to the chatroom logs. > self.disconnect() # < Disconnects from chatroom. > Thread.current["exitstatus"] = 0 # < Sets the exitstatus for 0 since this is a normal exit. > Thread.stop # < Kills the thread, if I did it right, the program dies when this is executed. > true > > That's the code used to close the main program, and it dies on Thread.stop. Given your description, wouldn't Thread.exit be the right method, not Thread.stop ? -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407