Voronich has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: double fork trick vs sig chld wait
by chrestomanci (Priest) on Nov 19, 2010 at 15:46 UTC | |
by Voronich (Hermit) on Nov 19, 2010 at 15:57 UTC | |
by tod222 (Pilgrim) on Nov 19, 2010 at 20:03 UTC | |
by Voronich (Hermit) on Nov 19, 2010 at 20:18 UTC | |
|
Re: double fork trick vs sig chld wait
by Illuminatus (Curate) on Nov 19, 2010 at 16:19 UTC |