From owner-svn-src-all@FreeBSD.ORG Mon Aug 25 16:02:25 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C58FD23A; Mon, 25 Aug 2014 16:02:25 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 86BC93B3E; Mon, 25 Aug 2014 16:02:25 +0000 (UTC) Received: from ralph.baldwin.cx (pool-173-70-85-31.nwrknj.fios.verizon.net [173.70.85.31]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 7A233B917; Mon, 25 Aug 2014 12:02:24 -0400 (EDT) From: John Baldwin To: Mateusz Guzik Subject: Re: svn commit: r270444 - in head/sys: kern sys Date: Mon, 25 Aug 2014 10:23:19 -0400 Message-ID: <1724027.iWxFDWcg2R@ralph.baldwin.cx> User-Agent: KMail/4.10.5 (FreeBSD/10.0-STABLE; KDE/4.10.5; amd64; ; ) In-Reply-To: <201408240904.s7O949sI083660@svn.freebsd.org> References: <201408240904.s7O949sI083660@svn.freebsd.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 25 Aug 2014 12:02:24 -0400 (EDT) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Aug 2014 16:02:25 -0000 On Sunday, August 24, 2014 09:04:09 AM Mateusz Guzik wrote: > Author: mjg > Date: Sun Aug 24 09:04:09 2014 > New Revision: 270444 > URL: http://svnweb.freebsd.org/changeset/base/270444 > > Log: > Fix getppid for traced processes. > > Traced processes always have the tracer set as the parent. > Utilize proc_realparent to obtain the right process when needed. Are you sure this won't break things? I know of several applications that expect a debugger to be the parent when attached and change behavior as a result (e.g. inserting a breakpoint on an assertion failure rather than generating a core). -- John Baldwin