Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Sep 2010 01:26:07 +0000 (UTC)
From:      David Xu <davidxu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r212075 - head/sys/kern
Message-ID:  <201009010126.o811Q7fc047247@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 			/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009010126.o811Q7fc047247>