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?

Replies are listed 'Best First'.
Re^5: IPC::Open3 STDIN never sees eof on win32?
by Yary (Pilgrim) 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.