--b8GWCKCLzrXbuNet
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 25/09/06 Logan Capaldo said:

> % cat alarm.rb
> trap("ALRM") do
>   puts "Alarm!"
> end
> 
> Process.kill("ALRM", $$)
> 
> 
> % ruby alarm.rb
> Alarm!

But that doesn't tell the OS to send a SIGALRM at a predefined time. I've
found the timeout library, and implemented what I needed with that, but isn't
the alarm() system call exposed in Ruby? It is in Perl and Python.

Thanks,
Mike
-- 
Michael P. Soulier <msoulier / digitaltorque.ca>
"Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction." --Albert Einstein

--b8GWCKCLzrXbuNet
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFFF7u1KGqCc1vIvggRApoRAJ92WmSxxvDYh5BPMWdfrj4O7kxBKwCgrfiR
DCgUgStRfkSXYu5aKt3x+RAPPP
-----END PGP SIGNATURE-----

--b8GWCKCLzrXbuNet--