in reply to waitpid for child #1 inside child #2: any way to make it work?
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 :)
|
---|