From: Roger Pack Date: 2008-03-25T23:31:58+09:00 Subject: Re: Thread#raise, Thread#kill, and timeout.rb are unsafe > Basically you need to have the equivalent of this: > > Thread.uninterruptable do > begin > Thread.interruptable do > # ... > end > rescue > # ... > ensure > # ... > end > end Yeah that would be work. That or, as one poster put it, only use exceptions to kill, not to raise (to snuff out the non-determinism and force users to use queues). Both of those would work. Good luck. -R -- Posted via http://www.ruby-forum.com/.