perllearner has asked for the wisdom of the Perl Monks concerning the following question:
if ($pid = fork()) { if ($pid2 = fork()) { <process A>; } else { <process B>; exit} } else { <process C> exit; } 1 while wait() > 0; <publish files>
Any clues to why this is happening would be appreciated. Is the wait() command all messed up? thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: fork exits prematurely leaving zombies
by Steve_p (Priest) on May 11, 2004 at 19:20 UTC | |
by thor (Priest) on May 11, 2004 at 23:30 UTC | |
|
Re: fork exits prematurely leaving zombies
by zude (Scribe) on May 11, 2004 at 22:57 UTC | |
by perllearner (Novice) on May 13, 2004 at 01:10 UTC | |
|
Re: fork exits prematurely leaving zombies
by gri6507 (Deacon) on May 11, 2004 at 19:06 UTC | |
by perllearner (Novice) on May 11, 2004 at 19:20 UTC |