|Syntactic Confectionery Delight|
Parallel::ForkManager questionby icanwin (Acolyte)
|on Mar 13, 2008 at 22:16 UTC||Need Help??|
icanwin has asked for the
wisdom of the Perl Monks concerning the following question:
I'm currently using Parallel::ForkManager to perfom parallel operations. When I create a new child using the start method, I need to send the generated pid to the child process, however I cant do it (I know the start method returns the pid but this pid is not visible in the child process).
So, how can I know the pid in the child process?
And finally, How can I kill a child process? Sometimes in the wait_all_children method I get stuck beacuse the parent waits for a child that never ends. I need something to kill a child process if it runs more than 5m without finishing.
Thanks a lot.