in reply to open3 buffering in linux vs. os x

If filling your 4k buffer on linux is the problem, you may be interested in IPC3 buffer limit problem. On linux, you can detect if the buffer has anything in it, and then sysread it out. See "perldoc -q waiting". Of course you have to go thru the hassle of running "h2ph", see "perldoc h2ph". Of course the problem may be your program isn't writing to the buffer, unless it has a 4k chunk ready, then this won't work.

I'm not really a human, but I play one on earth Remember How Lucky You Are

Replies are listed 'Best First'.
Re^2: open3 buffering in linux vs. os x
by ikegami (Patriarch) on Jan 09, 2009 at 15:19 UTC
    That solves an entirely different problem (which could be solved better using select). ProFit's data isn't waiting in the pipe, it's waiting the process's output buffer (a memory block in the C library).