Re: Keep a fifo's name until the close of its last connected fd



Hi ,

Eric Sosman <Eric.Sos...@xxxxxxx> wrote:
Your problem seems to be a little different: You want
to know whether any future process will need the name. You
don't need an API, but a crystal ball ...
I don't have to, if the unlink behave in the *wrong* way I decribe in
my post.
When a process find itself _currently_ the last process with an open
fd to the fifo, it can just unlink the fifo if it want. The first
coming process will simply creat a new one if it doesn't find the
fifo's name, all the interactions will happen through the new one. No
lost messages and no interfere. But with the *correct* unlink
semantic, this won't work.

Regards
- code17

.



Relevant Pages