apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <...@rkbloom.net>
Subject Re: Proc mutex re-org
Date Mon, 14 Jun 2004 12:02:41 GMT


On Mon, 14 Jun 2004, Justin Erenkrantz wrote:

> --On Saturday, June 12, 2004 9:45 PM -0400 rbb@rkbloom.net wrote:
>
> > OK, here is the proc mutex re-org.  This is ugly, but it passes all of the
> > tests, using both fork and proc_create.  The only problem with this patch,
> > is that it doesn't do the configure magic to actually setup FORK_DEFAULT
> > and PROC_CREATE_DEFAULT.  To test this, I just set APR_USE_FLOCK_SERIALIZE
> > to 1 along with APR_USE_SYSVSEM_SERIALIZE.  I am nost sure what the best
> > way is to do this with configure, so I will leave that as an exercise for
> > the group to discuss.
>
> How will fcntl() work with this?  flock() isn't on a bunch of platforms, so
> fcntl() is probably the more portable solution.
>
> For fcntl(), we open it for exclusive read and then unlink it right away - how
> do you plan on dealing with that?  -- justin

Read the patch and find out.   :-)  FCNTL is tested in the test program,
and it _does_ work, but only as a fork() mutex.  flock was the one I
chose, just because I needed one that would work as a proc_exec mutex,
and fcntl doesn't.

Ryan



Mime
View raw message