From owner-svn-src-head@FreeBSD.ORG Thu Nov 27 11:30:59 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C286106564A; Thu, 27 Nov 2008 11:30:59 +0000 (UTC) (envelope-from rink@rink.nu) Received: from mx1.rink.nu (gloom.rink.nu [213.34.49.2]) by mx1.freebsd.org (Postfix) with ESMTP id 470718FC17; Thu, 27 Nov 2008 11:30:58 +0000 (UTC) (envelope-from rink@rink.nu) Received: from localhost (localhost [127.0.0.1]) by mx1.rink.nu (Postfix) with ESMTP id 82A006D439; Thu, 27 Nov 2008 12:31:30 +0100 (CET) X-Virus-Scanned: amavisd-new at rink.nu Received: from mx1.rink.nu ([213.34.49.2]) by localhost (gloom.rink.nu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O979hQkhgp8h; Thu, 27 Nov 2008 12:31:26 +0100 (CET) Received: by mx1.rink.nu (Postfix, from userid 1000) id D95836D42B; Thu, 27 Nov 2008 12:31:26 +0100 (CET) Date: Thu, 27 Nov 2008 12:31:26 +0100 From: Rink Springer To: Konstantin Belousov Message-ID: <20081127113126.GH12700@rink.nu> References: <200811271128.mARBS0Kw085859@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200811271128.mARBS0Kw085859@svn.freebsd.org> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r185369 - in head: lib/libc/gen lib/libthr/thread libexec/rtld-elf X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Nov 2008 11:30:59 -0000 On Thu, Nov 27, 2008 at 11:28:00AM +0000, Konstantin Belousov wrote: > Author: kib > Date: Thu Nov 27 11:27:59 2008 > New Revision: 185369 > URL: http://svn.freebsd.org/changeset/base/185369 > > Log: > Add two rtld exported symbols, _rtld_atfork_pre and _rtld_atfork_post. > Threading library calls _pre before the fork, allowing the rtld to > lock itself to ensure that other threads of the process are out of > dynamic linker. _post releases the locks. > > This allows the rtld to have consistent state in the child. Although > child may legitimately call only async-safe functions, the call may > need plt relocation resolution, and this requires working rtld. > > Reported and debugging help by: rink > Reviewed by: kan, davidxu > MFC after: 1 month (anyway, not before 7.1 is out) Thanks! -- Rink P.W. Springer - http://rink.nu "Anyway boys, this is America. Just because you get more votes doesn't mean you win." - Fox Mulder