From: Simon Strandgaard <0bz63fz3m1qt3001@...> Date: 2003-05-17T23:24:49+09:00 Subject: Re: select strange behavier On Sat, 17 May 2003 23:58:17 +0900, ts wrote: >>>>>> "S" == Simon Strandgaard <0bz63fz3m1qt3001@sneakemail.com> writes: > > S> But then it makes no sense for me to use 'select'.. it will just behave the > S> same as if i were using polling. > > IO#read return nil at EOF OK. The code you see in the initial post was/is an attempt to make the following code: buffered. thread1 = Thread.new do # redirect stdout loop do s = r1.read(1) # TODO: can I make this buffered? Redir.instance.write_out(s) end end Any suggestions on how buffering can be done ??? -- Simon Strandgaard