apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mathihalli, Madhusudan" <mad...@hp.com>
Subject RE: apr_shm_attach() and APR_EEXIST
Date Thu, 27 May 2004 00:43:08 GMT

>-----Original Message-----
>From: Joe Orton [mailto:joe@manyfish.co.uk] 

>in the end using anonyous shm everywhere was easier than 
>fixing all the FIXMEs in the shm code where it should have had 
>real error handling, so I gave up with this stuff.

.. Interesting - we were working on this just last week.
With name-based shm, the file needs to be created only because ftok
needs it - once the shm is created, it's okay to delete the file.
As regards the shm itself, if we do a IPC_RMID soon after the
shmat(similar to anon-shm), the shm is marked for deletion soon after
all the processes detach.


View raw message