Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by RMGir (Prior)
on May 06, 2014 at 21:55 UTC ( #1085242=note: print w/replies, xml ) Need Help??


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?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1085242]
help
Chatterbox?
[marto]: use dreamweaver they said, it's brilliant they told me...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2018-07-20 12:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (431 votes). Check out past polls.

    Notices?