From owner-svn-src-head@freebsd.org Thu Sep 17 01:56:36 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CAB1D9CE865; Thu, 17 Sep 2015 01:56:36 +0000 (UTC) (envelope-from jhb@freebsd.org) 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 A919A1B34; Thu, 17 Sep 2015 01:56:36 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id B0BFBB972; Wed, 16 Sep 2015 21:56:34 -0400 (EDT) From: John Baldwin To: src-committers@freebsd.org Cc: svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r287864 - head/sys/kern Date: Wed, 16 Sep 2015 18:53:31 -0700 Message-ID: <1476335.DNMxzjPDBI@ralph.baldwin.cx> User-Agent: KMail/4.14.3 (FreeBSD/10.2-PRERELEASE; KDE/4.14.3; amd64; ; ) In-Reply-To: <201509161640.t8GGe8KD082156@repo.freebsd.org> References: <201509161640.t8GGe8KD082156@repo.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); Wed, 16 Sep 2015 21:56:34 -0400 (EDT) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 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, 17 Sep 2015 01:56:36 -0000 On Wednesday, September 16, 2015 04:40:08 PM John Baldwin wrote: > Author: jhb > Date: Wed Sep 16 16:40:07 2015 > New Revision: 287864 > URL: https://svnweb.freebsd.org/changeset/base/287864 > > Log: > When a process group leader exits, all of the processes in the group are > sent SIGHUP and SIGCONT if any of the processes are stopped. Currently this > behavior is triggered for any type of process stop including ptrace() stops > and transient stops for single threading during exit() and execve(). > Thus, if a debugger is attached to a process in a group when the leader > exits, the entire group can be HUPed. Instead, only send the signals if a > process in the group is stopped due to SIGSTOP. In particular, gdb creates a new process group each time it runs a new process. If that process forks a child and gdb follows the child, the child is killed with SIGHUP when the parent exits without this fix. -- John Baldwin