From: "Carlo E. Prelz" Date: 2012-11-02T06:36:21+09:00 Subject: Re: streaming stdout with open4 to prevent parent/child buffer lock Subject: streaming stdout with open4 to prevent parent/child buffer lock Date: Fri 02 Nov 12 06:06:52AM +0900 Quoting Matthew Purdy (lists@ruby-forum.com): > i have to fork a process and read a large amount of stdout; however, the > child buffer gets filled up and everything hangs. how do you read > stdout as stream? I am not very sure I understand what you want to do. But of one thing I am sure: stdout is to write (OUT) stdin is to read (IN) In other words, you cannot read from stdout. stdout.gets will never give you anything of interest. Try to get your input from stdin, instead. Carlo -- * Se la Strada e la sua Virtu' non fossero state messe da parte, * K * Carlo E. Prelz - fluido@fluido.as che bisogno ci sarebbe * di parlare tanto di amore e di rettitudine? (Chuang-Tzu)