tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: FIFO blocking behaviour



> Only if you somehow ensure that B opens it before A unlinks it.
But A only unlinks the FIFO after having opened it. If (that was my 
question) it's guarateed that that open will block until B has also 
opened it, that would work, no?
EF> Is it safe to have process A create the FIFO, pass the name to
EF> process B, open it for writing (write to it), and then "immediately"
EF> delete it?  Is it then guaranteed that process B will be able to
EF> open the FIFO (and, of course, read from it)?
The quoted "immediately" would mean that that will only happen after 
B hast opened the FIFO because A's open would block until that.

> Only if A opens it as well before deleting it.
Yes, that's what I intend.


Home | Main Index | Thread Index | Old Index