Mikel Lindsaar wrote:
> On Sun, Sep 7, 2008 at 12:42 AM, ara.t.howard <ara.t.howard / gmail.com> 
> wrote:
>>       begin
>>         block.call
>>       ensure
>>         Process.kill 'TERM', signaler.pid rescue nil
>>         Signal.trap('TERM', handler)
>>       end
> 
> Ara, thank you _so_ much for this.
> 
> I would never have thought of spawning suicidal terminator ruby
> processes to nuke my process :)  But works well.


There's also a timeout replacement lib [though I haven't tried it].
http://ph7spot.com/articles/system_timer
-- 
Posted via http://www.ruby-forum.com/.