From: Harry Ohlsen Date: 2002-11-23T12:38:00+09:00 Subject: Re: Thread problems On Sat, 23 Nov 2002 13:32, Chris wrote: > Hello, > > I found that some old code that had once worked just sort of stopped > working. It turns out that Thread.new do ... end wasn't doing anything; it > may as well have been a comment. > > So I ran the following test: > > Thread.new do > raise 'Your faith in Thread was well-placed.' > end > time = Time.now + 1 > while (Time.now < time) > Thread.pass > end By default, if a thread raises an exception, it does not abort all the other threads. This has hit me more times than I care to relate. Try putting Thread.abort_on_exception = true somewhere in your code ... preferably before the raising of the exception :-).