Date: Thu, 27 Nov 2008 12:31:26 +0100 From: Rink Springer <rink@FreeBSD.org> To: Konstantin Belousov <kib@FreeBSD.org> 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 Message-ID: <20081127113126.GH12700@rink.nu> In-Reply-To: <200811271128.mARBS0Kw085859@svn.freebsd.org> References: <200811271128.mARBS0Kw085859@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081127113126.GH12700>