You might want to turn off i/o buffering, so that you get anything the child writes, even if it times out.
In reply to Re: open2 unreliable? by fglock in thread open2 unreliable? by Anonymous Monk