From: Robert Klemme Date: 2010-09-25T17:05:26+09:00 Subject: Re: having problems with open4 and stuck forked processes On 25.09.2010 00:25, Tim Uckun wrote: >> It would be safer to use select() on the data coming from the child to >> wait for the process to terminate (when you read end-of-file) > > But what if the process hangs? > > Wouldn't I need to use timeout to check for that anyway? Select can be called with a timeout which guarantees that the call returns in time regardless whether there is any data available. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/