apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Garrett Rooney" <roo...@electricjellyfish.net>
Subject Re: shared memory among multiple users
Date Fri, 07 Apr 2006 17:27:08 GMT
On 4/7/06, Mike Behne <mdb32402@yahoo.com> wrote:
> I have been using apr_shm_create and apr_shm_attach on Windows with good
> results--as long as all processes referencing the memory run under the same
> account.  I've run into trouble in a case where the shared memory is created
> under one account, and then an attempt is made to reference from another
> process running under a different account.  In this case the apr_shm_attach
> returns "720005"--access denied.  Looking at the underlying Windows
> functions, it looks like there are ways to specify access lists for the
> mapped file, but the apr functions do not provide a way to utilize this.  Am
> I missing something?  Is there a way to share memory between processes
> running under different accounts with apr_shm?

That may be one of those things that's difficult to do portably...  If
you can come up with an API that could be implemented on multiple
platforms I'm sure we'd be willing to add it, but at this point I
would not be surprised if the functionality did not exist in APR.

-garrett

Mime
View raw message