From: "Iñaki Baz Castillo" Date: 2010-01-08T03:50:04+09:00 Subject: Re: Non-blocking communication between Ruby processes El Jueves, 7 de Enero de 2010, Phillip Gawlowski escribió: > 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? Unfortunatelly #full? is not a method of File :( 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. -- Iñaki Baz Castillo