I've got a service dispatch script that runs and spawns off children at an alarming rate. So the zombie hordes are terrifying. I'm trying to decide between grabbing sig_chld and waiting and 'double fork'.
For the sake of background; the current code uses fork and system (rather than exec), because:
Is there a reason to double-fork over setting sig_chld handler to a simple wait?
Is the latter more stable? Less blockilicious (or more?)
- V
In reply to double fork trick vs sig chld wait by Voronich
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |