From owner-freebsd-threads@FreeBSD.ORG Mon Jul 11 19:30:07 2011 Return-Path: Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E1FBD106566B for ; Mon, 11 Jul 2011 19:30:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 96C4B8FC26 for ; Mon, 11 Jul 2011 19:30:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p6BJU7EL042876 for ; Mon, 11 Jul 2011 19:30:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p6BJU7YW042875; Mon, 11 Jul 2011 19:30:07 GMT (envelope-from gnats) Resent-Date: Mon, 11 Jul 2011 19:30:07 GMT Resent-Message-Id: <201107111930.p6BJU7YW042875@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-threads@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Garrett Wollman Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74933106564A for ; Mon, 11 Jul 2011 19:20:12 +0000 (UTC) (envelope-from wollman@khavrinen.csail.mit.edu) Received: from khavrinen.csail.mit.edu (khavrinen.csail.mit.edu [128.30.28.20]) by mx1.freebsd.org (Postfix) with ESMTP id 3A3E78FC14 for ; Mon, 11 Jul 2011 19:20:11 +0000 (UTC) Received: from khavrinen.csail.mit.edu (localhost [127.0.0.1]) by khavrinen.csail.mit.edu (8.14.4/8.14.4) with ESMTP id p6BJ48Ed027300 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL CN=khavrinen.csail.mit.edu issuer=Client+20CA) for ; Mon, 11 Jul 2011 15:04:08 -0400 (EDT) (envelope-from wollman@khavrinen.csail.mit.edu) Received: (from wollman@localhost) by khavrinen.csail.mit.edu (8.14.4/8.14.4/Submit) id p6BJ48JN027299; Mon, 11 Jul 2011 15:04:08 -0400 (EDT) (envelope-from wollman) Message-Id: <201107111904.p6BJ48JN027299@khavrinen.csail.mit.edu> Date: Mon, 11 Jul 2011 15:04:08 -0400 (EDT) From: Garrett Wollman To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: threads/158815: pthread_set_name_np is no longer just a debugging interface X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Garrett Wollman List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2011 19:30:08 -0000 >Number: 158815 >Category: threads >Synopsis: pthread_set_name_np is no longer just a debugging interface >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-threads >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Mon Jul 11 19:30:07 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Garrett Wollman >Release: FreeBSD 8.2-RELEASE-p1 amd64 >Organization: None >Environment: System: FreeBSD khavrinen.csail.mit.edu 8.2-RELEASE-p1 FreeBSD 8.2-RELEASE-p1 #9 r221316: Tue May 3 17:32:39 EDT 2011 wollman@khavrinen.csail.mit.edu:/usr/obj/usr/src/sys/KHAVRINEN amd64 >Description: The manual page for pthread_set_name_np(3) says: This is a debugging interface and using it on a day-by-day basis makes no sense. It is no more a debugging interface than setproctitle(3), and has not been since the name started getting stuffed into the kernel. This statement may have made sense when the name was only visible in thread state dumps and the debugger. (I'll note in passing that some implementations provide a corresponding accessor function. There are also some implementations that spell it pthread_setname_np instead.) >How-To-Repeat: man pthread_set_name_np >Fix: Delete lines 47-49 from the documentation. >Release-Note: >Audit-Trail: >Unformatted: