Xref: utzoo comp.unix.questions:24988 comp.unix.wizards:23618 Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uflorida!stat!sun13!prism!gt0178a From: gt0178a@prism.gatech.EDU (BURNS,JIM) Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Re: Are pointers in a shared memory segment valid for a different process? Message-ID: <13003@hydra.gatech.EDU> Date: 25 Aug 90 00:45:55 GMT References: <1990Aug24.115009.24808@virtech.uucp> Followup-To: comp.unix.questions Organization: Georgia Institute of Technology Lines: 17 in article <1990Aug24.115009.24808@virtech.uucp>, cpcahil@virtech.uucp (Conor P. Cahill) says: > For other processes: > get segment id > attach segment at default address > get correct attachment address (from the shared memory segment itself) > detach & re-attach at the correct address. To summarize some points made in a recent similar thread in comp.unix.wizards, this only works if your OS allows specifying the attach address, and, if the OS is virtual, the attach address means the same thing in different process address spaces. Specifying offsets may be more work, but its more portable. -- 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