Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 56662 invoked from network); 3 Jul 2004 01:26:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Jul 2004 01:26:12 -0000 Received: (qmail 14152 invoked by uid 500); 3 Jul 2004 01:26:25 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 14060 invoked by uid 500); 3 Jul 2004 01:26:23 -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 13975 invoked by uid 99); 3 Jul 2004 01:26:21 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Date: Fri, 02 Jul 2004 18:24:38 -0700 From: Justin Erenkrantz To: dev@apr.apache.org Subject: Re: FreeBSD APR patch for threads Message-ID: <0AFC542D376F0D404528B0FB@st-augustin.ics.uci.edu> In-Reply-To: <83AE97E7-CC65-11D8-8973-000393B3C494@clove.org> References: <20040702194354.GA60584@crodrigues.org> <83AE97E7-CC65-11D8-8973-000393B3C494@clove.org> X-Mailer: Mulberry/3.1.6 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Spam-Status: No, score=-0.1 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.0-pre1-r21475 X-Spam-Checker-Version: SpamAssassin 3.0.0-pre1-r21475 (2004-06-19) on scotch.ics.uci.edu X-Virus-Scanned: clamd / ClamAV version 0.70, clamav-milter version 0.70j X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --On Friday, July 2, 2004 1:22 PM -0700 Aaron Bannert wrote: >> This patch basically does the following: >> - for the latest versions of FreeBSD, puts in the correct flags for >> linking in threads >> - for older versions of FreeBSD, i.e FreeBSD 4.x, disables threads by >> default (which is what APR does right now) > > I'm +1 for this patch in concept, but I don't have a FreeBSD machine > with an osreldate recent enough to test this patch. As noted in httpd's STATUS, FreeBSD 5.2 isn't sufficient as the default thread library there (libc_r) still breaks with httpd's worker. I've also seen breakage with Subversion if threads are enabled: the commit for SSL cert prompts will not display correctly. If you play with libmap.conf to use libkse, httpd will serve pages correctly with 5.2. The good news is that 5.3 (and -CURRENT now, I believe) will switch to libkse by default... That said, I'm not quite clear what the semantics of kern.osreldate are - will that block off any 5.2.x (i.e. 5.2.2 if that is released) and only allow current -CURRENT and eventually 5.3 and beyond? My 5.2.1 boxes report '502010', which is less than '502102' - so it would prevent them from enabling threads. I just want to make sure that it doesn't trigger on a 5.2.2 which, AIUI, will still use libc_r. If it does block 5.2.x, then this patch gets +1. Regardless, this is not something that must go into APR 1.0 - we can commit it after 1.0 (which should have been today!). -- justin