Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 16389 invoked by uid 500); 29 Jun 2001 16:55:51 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 16289 invoked from network); 29 Jun 2001 16:55:41 -0000 Date: Fri, 29 Jun 2001 09:55:17 -0700 From: Justin Erenkrantz To: Jeff Trawick Cc: Aaron Bannert , dev@apr.apache.org Subject: Re: CROSS_PROCESS vs. LOCK_ALL Message-ID: <20010629095516.T26239@ebuilt.com> References: <20010625171229.U10809@ebuilt.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from trawick@attglobal.net on Fri, Jun 29, 2001 at 09:15:54AM -0400 X-AntiVirus: scanned for viruses by AMaViS 0.2.1-pre3 (http://amavis.org/) X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N On Fri, Jun 29, 2001 at 09:15:54AM -0400, Jeff Trawick wrote: > Aaron Bannert writes: > > > Hi All, > > > > sorry to rekindle this fire, but I want to get this settled and move on. > > > > > > In my previous posts I said that I do not see why there are both > > APR_CROSS_PROCESS and APR_LOCK_ALL semantics in APR's lock > > routines. Instead I'd like to see APR_LOCK_ALL go away, and > > APR_CROSS_PROCESS to provide unconditional cross-process locking > > regardless of the underlying platform. > > > > The problem is that an APR_CROSS_PROCESS lock will behave differently > > depending on the platform implementation, and this goes against the > > "portable" part of APR. > > I don't have a problem with this. Sorry for being stupid before :) I can commit something to APR that tosses APR_LOCKALL - this makes the locking code a little simpler. However, httpd-2.0 has some instances of APR_LOCKALL. I can post a patch to new-httpd that switches all of those to APR_CROSS_PROCESS. Ideally, someone with commit access to both repositories can apply both of them at the same time. -- justin