Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 May 2010 08:46:28 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r208188 - stable/7/sys/fs/procfs
Message-ID:  <201005170846.o4H8kSpJ071275@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Mon May 17 08:46:27 2010
New Revision: 208188
URL: http://svn.freebsd.org/changeset/base/208188

Log:
  Partial MFC r207847:
  For detach procfs ctl command, clear P_STOPPED_TRACE process stop flag.

Modified:
  stable/7/sys/fs/procfs/procfs_ctl.c
Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/cddl/contrib/opensolaris/   (props changed)
  stable/7/sys/contrib/dev/acpica/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/fs/procfs/procfs_ctl.c
==============================================================================
--- stable/7/sys/fs/procfs/procfs_ctl.c	Mon May 17 08:35:14 2010	(r208187)
+++ stable/7/sys/fs/procfs/procfs_ctl.c	Mon May 17 08:46:27 2010	(r208188)
@@ -212,7 +212,7 @@ out:
 		}
 
 		/* not being traced any more */
-		p->p_flag &= ~P_TRACED;
+		p->p_flag &= ~(P_TRACED | P_STOPPED_TRACE);
 
 		/* remove pending SIGTRAP, else the process will die */
 		sigqueue_delete_proc(p, SIGTRAP);



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