Do you know where your variables are? | |
PerlMonks |
Re: fork and zombiesby Zaxo (Archbishop) |
on Oct 24, 2007 at 07:11 UTC ( [id://646840]=note: print w/replies, xml ) | Need Help?? |
waitpid looks for a particular child, and other signals may be lost. I like to keep the pid's as keys in a hash and delete them as they die: Trying to do that in a for loop assumes that child processes will halt in a particular order. After Compline,
In Section
Seekers of Perl Wisdom
|
|