From: Phillip Gawlowski Date: 2010-01-08T03:25:37+09:00 Subject: Re: Non-blocking communication between Ruby processes On 07.01.2010 18:58, I�aki Baz Castillo wrote: > Hummm, I have a reader process and a writer process. > The wirter process writes into the pipe file. > If I kill the reader process then the writer process remains writting in the > pipe and the data is stored (in the filesystem?). > > So there is the leaking problem... I must investigate it a bit more... pipe.write unless pipe.full? i.e. check if your pipe hits a set limit on disk, and generate an exception if the pipe_file reaches (or is close to reaching) the limit. You could then buffer the data to be written until an additional (or new) reading thread has started. -- Phillip Gawlowski