From this code and from what appears to be the original thread I can't tell why you need two fork()s like this - I smell an XY Problem. Could you describe what problem you're trying to solve with this code in the first place? (Or is this just an exercise in forking?) I strongly suspect there is an easier way to solve your original problem.
In reply to Re: waitpid for child #1 inside child #2: any way to make it work?
by Anonymous Monk
in thread waitpid for child #1 inside child #2: any way to make it work?
by italdesign
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |