On Sun, 18 May 2003 00:30:58 +0900, ts wrote:

>>>>>> "S" == Simon Strandgaard <0bz63fz3m1qt3001 / sneakemail.com> writes:
> 
> S> The code you see in the initial post was/is an attempt to make 
> S> the following code: buffered.
> 
>  IO#read return nil at EOF

Are you suggestion that I should do like this.
This is *polling*... its blocking im interested in.. how ?

	thread = Thread.new do
		loop do
			if (data = r1.read(100))
				Redir.instance.write_out data
			else
				puts "r1 not"
			end
			if (data = r2.read(100))
				Redir.instance.write_error data
			else
				puts "r2 not"
			end
		end
	end   


--
Simon Strandgaard