From: why the lucky stiff Date: 2006-08-16T03:42:18+09:00 Subject: Re: sandbox timers & block scopes On Wed, Aug 16, 2006 at 02:46:30AM +0900, MenTaLguY wrote: > Having a watchdog thread should require the least hackery -- maybe the > only question at that point is whether it's easy for a separate thread > to cleanly kill a rogue sandbox the way you want it to? Yeah, that's just it. I don't want to kill the whole thread containing the sandbox. Just stop the eval. And if I can avoid using an actual Ruby thread to monitor the sandbox, I would like that! I'm shooting for: Sandbox.new(:timeout => 10).eval(str) _why