P0w3rK!d has asked for the wisdom of the Perl Monks concerning the following question:
# A.pl unless(fork) { sleep 1 until getppid == 1; for (1..10) { @argsfoo = ("$cd $TSTDIR; B.pl"); if (system(@argsfoo) != 0) { ... } else { ... } } exit 0; } wait;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Proper Forking
by nardo (Friar) on Jul 24, 2001 at 23:17 UTC | |
|
Re: Proper Forking
by decnartne (Beadle) on Jul 24, 2001 at 23:33 UTC | |
|
(tye)Re: Proper Forking
by tye (Sage) on Jul 25, 2001 at 03:11 UTC | |
|
Re: Proper Forking (silly)
by suaveant (Parson) on Jul 24, 2001 at 23:21 UTC |