EchoAngel has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks, I am looking for a function that will make a system call, probably using fork, and if that system call exceeds a certain time limit, the parent process will kill it. but if the system call completes normally within the time limit, nothing will happen... thanks for your help

Replies are listed 'Best First'.
Re: Fork Question
by Tanktalus (Canon) on Apr 13, 2005 at 22:00 UTC
Re: Fork Question
by eibwen (Friar) on Apr 14, 2005 at 00:17 UTC
    Since you're limiting a system call, you can use BSD::Resource or the equivalent system call.