in reply to Forks (not waiting for children)

UPDATE: I had a slight mistake in the code, so now I can tell that the parent is not waiting. But it seems that the children didn't update any global variables. I figured that it is because everything they do can't be shared with the parent. Is there a way to share variables between processes? Thanks for the help.

Replies are listed 'Best First'.
Re^2: Forks (not waiting for children)
by Corion (Patriarch) on Feb 07, 2012 at 22:04 UTC

    See perlipc, or use a database. The best approach to interaction with other processes is to avoid the interaction, or at least try to couple it as loose as possible, like having each child write the results to a separate file.

Re^2: Forks (not waiting for children)
by JavaFan (Canon) on Feb 07, 2012 at 22:33 UTC
    Shared memory? Threads instead of forks? Use the event loop of your gui frame work? Use another form of communication between processes instead of a variable?
Re^2: Forks (not waiting for children)
by MidLifeXis (Monsignor) on Feb 08, 2012 at 13:54 UTC

    Is this in relation to Fork Sharing Globals? If so, it would be helpful for us if you would link to the other question.

    --MidLifeXis