Do you know where your variables are? | |
PerlMonks |
Re^6: open2() in Windowsby BrowserUk (Patriarch) |
on Jul 23, 2007 at 17:53 UTC ( [id://628284]=note: print w/replies, xml ) | Need Help?? |
... when the child process stops giving output the while (<READ>) terminates ... No it doesn't! That's the point. Unless the child process closes the file handle, and so signals that it's not going to write any more output, while( <READ> ) { ... } will just wait until it writes some more. Since you are running the child process continuously, it never closes stdout, so the parent's inner read loop will never terminate. Sorry, but that is just the way it is. Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|