Forkexec is a project mainly written in Ruby, based on the MIT license.
Solution for Ruby timeout of external calls.
= forkexec
==example
require 'forkexec' => true
ForkExec.timeout(1){ exec "sleep 10"} Timeout::Error: PID 11185 timeouted from ./forkexec.rb:28:in `timeout' from (irb):2 from /usr/lib/ruby/1.8/x86_64-linux/rbconfig.rb:168
ForkExec.timeout(1){ "foo bar" if true} => "foo bar"
== Copyright
Copyright (c) 2010 Adam Kliment. See LICENSE for details.