in reply to fork exits prematurely leaving zombies
Would be cleaner to:
if (!fork) { <process A>; exit } if (!fork) { <process B>; exit } if (!fork) { <process C>; exit } # parent waits for A, B, and C 1 while wait() > 0;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: fork exits prematurely leaving zombies
by perllearner (Novice) on May 13, 2004 at 01:10 UTC |