From owner-freebsd-current Wed Oct 21 14:08:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA11272 for freebsd-current-outgoing; Wed, 21 Oct 1998 14:08:50 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA11264 for ; Wed, 21 Oct 1998 14:08:47 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id OAA25212; Wed, 21 Oct 1998 14:08:16 -0700 (PDT) Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3) id sma025208; Wed Oct 21 14:07:56 1998 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id OAA28265; Wed, 21 Oct 1998 14:07:56 -0700 (PDT) From: Archie Cobbs Message-Id: <199810212107.OAA28265@bubba.whistle.com> Subject: Re: Another Serious libc_r problem In-Reply-To: <199810211519.LAA07958@pcnet1.pcnet.com> from Daniel Eischen at "Oct 21, 98 11:19:01 am" To: eischen@vigrid.com (Daniel Eischen) Date: Wed, 21 Oct 1998 14:07:56 -0700 (PDT) Cc: eischen@vigrid.com, lists@tar.com, current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Daniel Eischen writes: > the mutex, and then your solution works. If it doesn't own > the mutex, then you've got a potential deadlock condition, > but this could be deemed acceptable because POSIX says that > "undefined behavior" will occur in this case. Random interjected comment.. I would argue that for any case that POSIX says results in "undefined behavior", and the pthread code can easily detect this case, FreeBSD should immediately abort(3). Threads programmers will thank you when their bugs are revealed for them. -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message