On 07.01.2010 19:50, Iki Baz Castillo wrote:

>> pipe.write unless pipe.full?
>
> Unfortunatelly #full? is not a method of File :(

Well, yes, you'd have to implement the method (or something like it) 
yourself. ;)

> Note that I'm using a fifo file (created with "mkfifo file") so it is not
> "stored" in the filesystem. Instead it's just a communication between two
> processes at SO level via SO's buffers.

Yeah, I gathered that from your other posts. The general point, though, 
still applies: check the pipe's size, and if it grows too large, spin 
off a new reading thread.

--
Phillip Gawlowski