Shared Memory
M.J.Shannon
mjs at eagle.UUCP
Tue Apr 9 13:25:41 AEST 1985
> > How do you pass a key from one process to
> > another process so that both processes have acess to the
> > same "shmid"?
>
> Message passing?
The "proper" way to do this is to use the ftok() (stdipc(3C)) routine
with a filename that all processes involved agree upon. Yes, it is
difficult to find this routine (due to the name of the manual entry
and the contents of the NAME section, it doesn't appear anywhere
useful in the permuted index), but that's how to do it. Honest --
I've used it!
--
Marty Shannon
UUCP: ihnp4!eagle!mjs
Phone: +1 201 522 6063
More information about the Comp.unix.wizards
mailing list