more useful options | |
PerlMonks |
Re^3: Reaping Zombiesby salva (Canon) |
on Feb 15, 2006 at 19:23 UTC ( [id://530476]=note: print w/replies, xml ) | Need Help?? |
It seems to be expensive it terms of CPU usage
What do you mean exactly? have you found the waitpid system call to be expensive, or are you talking about the full process? What else are you doing inside the while loop besides calling the reaper? You should be calling sleep or select or any other thing that causes your program to do nothing for a while!
In Section
Seekers of Perl Wisdom
|
|