Re: killing processes after x seconds

2004-01-08 Thread Ramprasad A Padmanabhan
Dan Anderson wrote: Is it possible to (easily) tell perl to kill itself and all children if the script doesn't execute in x seconds? to kill a script in itself you could use alarm($seconds) If you really are serious about killed all forked children properly write a function that will kill a

killing processes after x seconds

2004-01-06 Thread Dan Anderson
Is it possible to (easily) tell perl to kill itself and all children if the script doesn't execute in x seconds? I thought about forking the script and having the parent sleep for x seconds at the top of the process, but that seems like a lot of extra code. I was hoping there wa