home *** CD-ROM | disk | FTP | other *** search
- From: rdg@hpfcso.FC.HP.COM (Rob Gardner)
- Date: Mon, 20 Jul 1992 18:43:55 GMT
- Subject: Re: Shared memory in 6.5
- Message-ID: <7371155@hpfcso.FC.HP.COM>
- Organization: Hewlett-Packard, Fort Collins, CO, USA
- Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!hpscdc!cupnews0.cup.hp.com!hppad.waterloo.hp.com!hppad!hpfcso!rdg
- Newsgroups: comp.sys.hp
- References: <1992Jul16.140923.16870@bmers145.bnr.ca>
- Lines: 16
-
- >
- > |> Just out of curiousity, if you have no other processes attaching the
- > |> segment, why are you using shared memory?
- >
- > Thanks for the info. What I mean by no other processes attached
- > is that there was no process attached to the segment. After shmctl(IPC_RMID),
- > no other process will be able to get the segment.
-
- I still don't understand your situation clearly. Even if multiple
- processes need to attach the segment, depending on your application,
- you can have the last process that needs to attach it call
- shmctl(IPC_RMID). Sorry, but that's the best you can do; Shared
- memory segments are *meant* to stick around after processes die,
- and you must remove them explicitly.
-
- Rob
-