Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.unix.questions Subject: Re: question on forking & shared memory Message-ID: <1990Nov24.163413.12118@virtech.uucp> Date: 24 Nov 90 16:34:13 GMT References: <308@srchtec.UUCP> Reply-To: cpcahil@virtech.UUCP (Conor P. Cahill) Organization: Virtual Technologies Inc., Sterling VA Lines: 14 In article <308@srchtec.UUCP> chuck@srchtec.uucp (Chuck Howard) writes: > >I'm trying to use multiple processes on a DECstation. I've been able to >fork multiple processes, now I need to have the processes access the same >memory. If anyone has used shared memory after forking processes, The key to this is to create and attach to the shared memory segment before you fork. That way all of the processes have the same shared memory segment attached at the same location without any extra work for you to do. -- Conor P. Cahill (703)430-9247 Virtual Technologies, Inc., uunet!virtech!cpcahil 46030 Manekin Plaza, Suite 160 Sterling, VA 22170