I spent what seemed like weeks tracking down all of the places where it could go wrong, and leave zombies or just "hang" waiting on children. Finally I came up with the code in Re: Concurrent Processes, and never had any problems (at least, not on Solaris).
-QM
--
Quantum Mechanics: The dreams stuff is made of
In reply to Re: $SIG{CHILD} misses on zombies
by QM
in thread $SIG{CHILD} misses on zombies
by gmantz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |