From owner-freebsd-hackers@FreeBSD.ORG Wed Feb 7 21:36:51 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BA7F016A400 for ; Wed, 7 Feb 2007 21:36:51 +0000 (UTC) (envelope-from pietro.cerutti@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.freebsd.org (Postfix) with ESMTP id 4DA8C13C49D for ; Wed, 7 Feb 2007 21:36:51 +0000 (UTC) (envelope-from pietro.cerutti@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so285862uge for ; Wed, 07 Feb 2007 13:36:49 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=O9sbng42aOd52zrNWV3vZS6EkaAZ2s//TjLwAZxtEaA1eM5MvcHDbZRO1pQD5a0vVYKQ8lG7SXIa14v4SZY0TjSig0lDsEzA/xUlBwwlLpuXdSOykdSkeCU8MLCAl381h3L+JDCBhtiTDdTm+zqdIk1hDm2NuGn+qRj1M8u93A8= Received: by 10.82.176.3 with SMTP id y3mr397342bue.1170884201933; Wed, 07 Feb 2007 13:36:41 -0800 (PST) Received: by 10.67.23.8 with HTTP; Wed, 7 Feb 2007 13:36:41 -0800 (PST) Message-ID: Date: Wed, 7 Feb 2007 22:36:41 +0100 From: "Pietro Cerutti" To: "youshi10@u.washington.edu" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: freebsd-hackers@freebsd.org Subject: Re: Trying to join an already exited pthread X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Feb 2007 21:36:51 -0000 On 2/7/07, youshi10@u.washington.edu wrote: > Just wondering: > > If I was to try and join a pthread that already exited, would there be an error message output and/or errno set to an error value, or would a system hang? man pthread_join(3): ERRORS The pthread_join() function will fail if: [EINVAL] The implementation has detected that the value speci- fied by thread does not refer to a joinable thread. A pthread that already exited is considered non-joinable > It this variable on Unix OSes? The pthread_join() function conforms to ISO/IEC 9945-1:1996 (``POSIX.1''). > -Garrett -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org