Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 2750 invoked by uid 500); 4 Jul 2001 23:17:34 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 2739 invoked from network); 4 Jul 2001 23:17:32 -0000 Message-ID: <3B43A449.8020809@cnet.com> Date: Wed, 04 Jul 2001 16:18:33 -0700 From: Ian Holsman User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.2+) Gecko/20010704 X-Accept-Language: en-us MIME-Version: 1.0 To: dev@apr.apache.org Subject: Shared Memory in APR Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N OK.. got a strange question... I'm looking at the shared memory functions (in unix), and am struggling to find out how one can attach to a shared memory segment already created by another process. I want to be able to create a a shared memory version of the hash table which will be accessable all the processes but can't seem to see a method to do this, unless I create the shared mem before I fork and the shared memory variable is available . I can live with the above (creating the memory before I call fork) , but was wondering if there was a better way (mmap'ed files perhaps)