Shared Memory in BSD4.3 is lacking?
Dave Decot
decot at hpisod2.HP.COM
Mon Feb 29 07:18:22 AEST 1988
> So what's missing, or otherwise brain-damaged? Much of the problem
> with the interface is that your program has to find and hook up to
> shared memory somehow, and the shared memory has to be able to
> stick around when unused. The magic cookie approach seems
> reasonable.
But the cookies should be doled out by the file system, not by a
replication and distortion of the file system semantics.
There still is no useful way to generate appropriate magic cookies
under the "shmid" approach; ftok() is a self-admitted botch.
There should be a way to cause private shared memory segments
to vanish upon termination of a process or process group.
Dave Decot
hpda!decot
More information about the Comp.unix.wizards
mailing list