Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^4: IPC::Open3 STDIN never sees eof on win32?

by bulk88 (Priest)
on Dec 05, 2012 at 19:35 UTC ( #1007375=note: print w/ replies, xml ) Need Help??


in reply to Re^3: IPC::Open3 STDIN never sees eof on win32?
in thread IPC::Open3 STDIN never sees eof on win32?

I think the problem *might be* Perl's very large buffer size, see pipe fork win32.


Comment on Re^4: IPC::Open3 STDIN never sees eof on win32?
Re^5: IPC::Open3 STDIN never sees eof on win32?
by Yary (Scribe) on Dec 06, 2012 at 15:16 UTC
    Buffer size doesn't seem to be it, since I can turn on autoflush in the parent and see writes as they happen in the child. Also buffer size doesn't explain the child not seeing the parent close the pipe, and the child not seeing the parent exit.

    That node pipe fork win32 is good reading but the poster states "If I add a 'close($parent);' after 'print $parent "exit now\r\n\r";' it works."- which is what I have in the one-liner, closing the parent's end of the pipe after I print to it.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007375]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (11)
As of 2014-08-28 15:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (263 votes), past polls