Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site uwvax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!bellcore!decvax!genrad!panda!talcott!harvard!seismo!uwvax!dave From: dave@uwvax.UUCP (Dave Cohrs) Newsgroups: net.unix,net.unix-wizards Subject: Re: Shared Memory Message-ID: <165@uwvax.UUCP> Date: Thu, 4-Apr-85 09:17:44 EST Article-I.D.: uwvax.165 Posted: Thu Apr 4 09:17:44 1985 Date-Received: Sun, 7-Apr-85 03:12:32 EST References: <563@ahuta.UUCP> Organization: U of Wisconsin CS Dept Lines: 20 Xref: watmath net.unix:4130 net.unix-wizards:12721 > How do you pass a key from one process to > another process so that both processes have acess to the > same "shmid"? > In other words how do you insure that each > process has the same shared memory id? I have implemented the SysV shared memory (well, not very well, but it works like the man pages describe) under 4.2BSD. In one application, we open up a server socket and the process with wants the same shmid connects to this and gets it. If you don't have these neat 4.2 functions, I'd suggest sending the shmid through a pipe to the other process or, if they aren't parent and child, make a famous file and put it there. dave -- dave cohrs ...!{allegra,harvard,ihnp4,seismo}!uwvax!dave dave@wisc-limburger.arpa (bug? what bug? that's a feature!)