apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <jus...@erenkrantz.com>
Subject Re: Proc mutex re-org
Date Mon, 14 Jun 2004 07:48:49 GMT
--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

Mime
View raw message