Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!rutgers!mephisto!prism!gt0178a From: gt0178a@prism.gatech.EDU (BURNS,JIM) Newsgroups: comp.unix.internals Subject: Re: shmat() & shmdt() questions. Message-ID: <13782@hydra.gatech.EDU> Date: 18 Sep 90 09:00:41 GMT References: <452@cfa.HARVARD.EDU> Organization: Georgia Institute of Technology Lines: 23 in article <452@cfa.HARVARD.EDU>, wyatt@cfa.HARVARD.EDU (Bill Wyatt,OIR) says: > IPC_PRIVATE is useful, but is not needed for this example (see my second Granted, he could have just as easily used the more general call: myshmid = shmget (some-made-up-not-in-use-int-id, 4096, IPC_CREAT|600); but that paragraph answered his question about inheritance. > point below about fork). In the example given, the idea is to keep the > memory shared *only* between the parent and child, but it doesn't have I assume you are talking about MY example, not his. > anything to do with making the same ID access the same shared segment. Since the id is inherited, it IS the same id. -- BURNS,JIM Georgia Institute of Technology, Box 30178, Atlanta Georgia, 30332 uucp: ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gt0178a Internet: gt0178a@prism.gatech.edu