From owner-freebsd-threads@FreeBSD.ORG Thu Mar 3 15:15:48 2005 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7F7D16A4E8 for ; Thu, 3 Mar 2005 15:15:48 +0000 (GMT) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B1A743D2F for ; Thu, 3 Mar 2005 15:15:48 +0000 (GMT) (envelope-from rodrigc@crodrigues.org) Received: from h00609772adf0.ne.client2.attbi.com ([66.30.114.143]) by comcast.net (rwcrmhc12) with ESMTP id <2005030315154601400hs0p7e>; Thu, 3 Mar 2005 15:15:47 +0000 Received: from h00609772adf0.ne.client2.attbi.com (localhost [127.0.0.1]) j23FFjsF002554 for ; Thu, 3 Mar 2005 10:15:46 -0500 (EST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost)j23FFiN6002553 for freebsd-threads@freebsd.org; Thu, 3 Mar 2005 10:15:44 -0500 (EST) (envelope-from rodrigc) Date: Thu, 3 Mar 2005 10:15:44 -0500 From: Craig Rodrigues To: freebsd-threads@freebsd.org Message-ID: <20050303151544.GA2518@crodrigues.org> References: <1109551418.782.30.camel@compass.straycat.dhs.org> <1109742079.777.15.camel@compass.straycat.dhs.org> <422649AF.5090606@freebsd.org> <1109833505.777.80.camel@compass.straycat.dhs.org> <4226B9DC.7040405@freebsd.org> <1109835366.777.95.camel@compass.straycat.dhs.org> <42272009.507@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42272009.507@freebsd.org> User-Agent: Mutt/1.4.1i Subject: Re: Mono's XSP crashes on browser connection X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Mar 2005 15:15:49 -0000 On Thu, Mar 03, 2005 at 10:32:41PM +0800, David Xu wrote: > whether _POSIX_THREAD_PROCESS_SHARED is defined or not in > source code, but he failed to respect this macro at many places, so the > macro is rather bogus. Side note: Keep in mind, that according to the POSIX/Single Unix Specification standards, if a _POSIX_* macro is defined, but is -1, that means that the feature is unsupported. ( See: http://www.opengroup.org/onlinepubs/009695399/basedefs/unistd.h.html ). We define a lot of POSIX macros like this in . The convention on Linux's glibc is to only define a _POSIX macro if the feature is supported. Consequently, a lot of software written on Linux which assumes this convention will break on FreeBSD. The Linux glibc convention is IMHO more intuitive, but FreeBSD is more "standards" conformant. So the Mono code is not entirely doing the right thing with respect to checking _POSIX_THREAD_PROCESS_SHARED....but you mention that the Mono code isn't even consistent in checking this macro. Bleh. :) -- Craig Rodrigues rodrigc@crodrigues.org