Module Timeout
In: lib/active_ldap/timeout_stub.rb
lib/active_ldap/timeout.rb

Methods

alarm   alarm  

Public Class methods

A forking timeout implementation that relies on signals to interrupt blocking I/O instead of passing that code to run in a separate process.

A process is fork()ed, sleeps for sec, then sends a ALRM signal to the Process.ppid process. ALRM is used to avoid conflicts with sleep()

This overwrites any signal

[Validate]