From owner-svn-src-all@FreeBSD.ORG Wed Sep 1 01:26:07 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6148E1065698; Wed, 1 Sep 2010 01:26:07 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 518268FC1C; Wed, 1 Sep 2010 01:26:07 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o811Q742047249; Wed, 1 Sep 2010 01:26:07 GMT (envelope-from davidxu@svn.freebsd.org) Received: (from davidxu@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o811Q7fc047247; Wed, 1 Sep 2010 01:26:07 GMT (envelope-from davidxu@svn.freebsd.org) Message-Id: <201009010126.o811Q7fc047247@svn.freebsd.org> From: David Xu Date: Wed, 1 Sep 2010 01:26:07 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r212075 - head/sys/kern X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 01 Sep 2010 01:26:07 -0000 Author: davidxu Date: Wed Sep 1 01:26:07 2010 New Revision: 212075 URL: http://svn.freebsd.org/changeset/base/212075 Log: rescure comments from RELENG_4. Modified: head/sys/kern/kern_sig.c Modified: head/sys/kern/kern_sig.c ============================================================================== --- head/sys/kern/kern_sig.c Tue Aug 31 23:14:03 2010 (r212074) +++ head/sys/kern/kern_sig.c Wed Sep 1 01:26:07 2010 (r212075) @@ -2140,6 +2140,10 @@ tdsendsignal(struct proc *p, struct thre */ if (P_SHOULDSTOP(p)) { if (sig == SIGKILL) { + /* + * If traced process is already stopped, + * then no further action is necessary. + */ if (p->p_flag & P_TRACED) goto out; /* @@ -2152,6 +2156,10 @@ tdsendsignal(struct proc *p, struct thre } if (prop & SA_CONT) { + /* + * If traced process is already stopped, + * then no further action is necessary. + */ if (p->p_flag & P_TRACED) goto out; /* @@ -2198,6 +2206,10 @@ tdsendsignal(struct proc *p, struct thre } if (prop & SA_STOP) { + /* + * If traced process is already stopped, + * then no further action is necessary. + */ if (p->p_flag & P_TRACED) goto out; /*