From: Phillip Gawlowski Date: 2010-01-08T04:01:36+09:00 Subject: Re: Non-blocking communication between Ruby processes On 07.01.2010 19:50, I�aki 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