From: "Iñaki Baz Castillo" Date: 2010-01-08T03:40:43+09:00 Subject: Re: Non-blocking communication between Ruby processes El Jueves, 7 de Enero de 2010, Iñaki Baz Castillo escribió: > El Jueves, 7 de Enero de 2010, Iñaki Baz Castillo escribió: > > The doubt I have now is about how secure is a pipe. > > Could it leak memory if some process die or the reader process is not so > > fast to handle the received data? > > 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... Ok, the fifo remains working at SO level so it can receive messages after some SO buffer capability is filled. Then the writer process blocks when trying to "flush" the data. Fortunatelly it just blocks as Ruby thread level so other thread can work. -- Iñaki Baz Castillo