http://www.perlmonks.org?node_id=1085242


in reply to waitpid for child #1 inside child #2: any way to make it work?

Child1 can wait on child2 because Child1 is Child2's parent.

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 :)


Mike
  • Comment on Re: waitpid for child #1 inside child #2: any way to make it work?