apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: [PATCH] apr_shm_create/shmget/fopen flags
Date Fri, 13 Dec 2002 20:40:20 GMT
At 5:20 PM +0000 12/13/02, Joe Orton wrote:
>For the implementation of name-based apr_shm_create using shmget (i.e.
>the filename != NULL case), I've got two questions:
>
>1) why is APR_EXCL passed to the apr_file_open call?  This is annoying
>for Apache since if the server crashes, you have to remove the shmem
>segment *and* the filename before restarting.  Patch below OK?
>

Basically, it's a protection mechanism. Since each segment is
backed up with a file, you want (and need) to ensure that APR
has sole access/control over that file, hence the EXCL setting.

-- 
===========================================================================
   Jim Jagielski   [|]   jim@jaguNET.com   [|]   http://www.jaguNET.com/
      "A society that will trade a little liberty for a little order
             will lose both and deserve neither" - T.Jefferson

Mime
View raw message