According to waitpid, you can only wait for the results of your own child processes. Which makes sense when you think about it - waitpid is how parent processes can collect child process status, it makes no sense outside that relationship.
You'll have to pick another Interprocess Communication mechanism :)
In reply to Re: waitpid for child #1 inside child #2: any way to make it work?
by RMGir
in thread waitpid for child #1 inside child #2: any way to make it work?
by italdesign
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |