Don't ask to ask, just ask | |
PerlMonks |
Re^3: delayed die and open3by RazorbladeBidet (Friar) |
on Mar 31, 2005 at 16:46 UTC ( [id://443882]=note: print w/replies, xml ) | Need Help?? |
I was asking this same question myself. Take out your "die" and it becomes evident what happens The fork inside open3 (and yes, it does fork) forks the PROCESS. The whole thing. So your parent continues to run as normal, and, as the docs for IPC::open3 say, it does NOT wait for the child to run. Therefore, the child keeps running after the parent is finished, dies and hits the die in your main program (because it forks the entire process).
-------------- "But what of all those sweet words you spoke in private?" "Oh that's just what we call pillow talk, baby, that's all."
In Section
Seekers of Perl Wisdom
|
|