nvi-inc / fs

VLBI Field System
GNU General Public License v3.0
13 stars 14 forks source link

IPC keys needs a better solution than ftok() #17

Open wehimwich opened 4 years ago

wehimwich commented 4 years ago

Maybe POSIX IPC has something. If so maybe the libraries could rewritten using that. Maybe we should get off system V anyway. Maybe POSIX would give us longer message queues (or is having these smallish better anyway).

dehorsley commented 4 years ago

It looks like the POSIX IPC APIs use a unique name to identify a resource. It has to start with a "/" but it's not really a path.

Though it looks like it wouldn't be a simple drop-in replacement to move to POSIX IPC though. For instance the message queue API doesn't have the type field. Probably doable, but maybe it's worth looking at something completely different 😄 (I have some ideas, but need try implementing them to see how well it would fit)