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

Re: temp queues



>Chuck Yerkes on 02/11/2002 wrote the bit with this mark:

>Ensure that the fifo create actually worked and you are looking
>at YOUR fifo, avoiding some race conditions (e.g., bad guy creates
>a fifo right before you try to and his gets the information).

How would one differentiate between a bad guy fifo well disguised and my
actual fifo?

>I dunno what a "pacs image server" is, so I dunno if you don't
>want your own (owned by your user) area that just clears the
>dir on startup.

I do have a "pacsuser" that runs the "Picture Archive Computer System"
programs, and the data aquisition software,etc, so that's not a stretch.
like:

/home/pacsuser/queues

for example? Ya, that could work nicely. Nicer in fact. thanks.

Is that in keeping with openBSD ports philosophy do you know?

I must admit that I'm still fiddling with this one. Fifo's work for the
distributed communication. Pipes and streams (duplex pipes) also work,
as does the msgctl system. I haven't settled on a final one as of yet.
Each system of message passing between parent and child has advantages
and disadvantages. Need to give it more thought and experimentation.
-- 
Liam Allen               allenwc@shaw.ca
it may be that your sole purpose in life
is to serve as a warning to others