From owner-cvs-src@FreeBSD.ORG Tue Nov 28 11:05:32 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9439416A415; Tue, 28 Nov 2006 11:05:32 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7FC6C43CA3; Tue, 28 Nov 2006 11:05:30 +0000 (GMT) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kASB5WXU046995; Tue, 28 Nov 2006 11:05:32 GMT (envelope-from davidxu@repoman.freebsd.org) Received: (from davidxu@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kASB5WoY046994; Tue, 28 Nov 2006 11:05:32 GMT (envelope-from davidxu) Message-Id: <200611281105.kASB5WoY046994@repoman.freebsd.org> From: David Xu Date: Tue, 28 Nov 2006 11:05:31 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libthr/thread thr_join.c src/lib/libpthread/thread thr_join.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2006 11:05:32 -0000 davidxu 2006-11-28 11:05:31 UTC FreeBSD src repository Modified files: lib/libthr/thread thr_join.c lib/libpthread/thread thr_join.c Log: If a thread was detached, return EINVAL instead, the error code is also returned by pthread_detach() if a thread was already detached, the error code was already documented: > [EINVAL] The implementation has detected that the value speci- > fied by thread does not refer to a joinable thread. Revision Changes Path 1.30 +1 -1 src/lib/libpthread/thread/thr_join.c 1.23 +1 -1 src/lib/libthr/thread/thr_join.c