in reply to How to force a timeout on a system call?
See the discussion at: Timing out shell commands (paranoia), esp Dominus's reply.
-- bluto