Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Apr 2012 20:22:08 +0000 (UTC)
From:      "George V. Neville-Neil" <gnn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r234234 - head/cddl/contrib/opensolaris/lib/libdtrace/common
Message-ID:  <201204132022.q3DKM834095750@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gnn
Date: Fri Apr 13 20:22:08 2012
New Revision: 234234
URL: http://svn.freebsd.org/changeset/base/234234

Log:
  Change SIGUSR1 to SIGTHR to properly wake up a process that is being
  traced.  The use of SIGUSR1 caused traced processes (those attached to
  with dtrace -p) to exit when dtrace exited.
  
  MFC in: 1 week

Modified:
  head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_proc.c

Modified: head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_proc.c
==============================================================================
--- head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_proc.c	Fri Apr 13 18:21:56 2012	(r234233)
+++ head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_proc.c	Fri Apr 13 20:22:08 2012	(r234234)
@@ -811,7 +811,7 @@ dt_proc_destroy(dtrace_hdl_t *dtp, struc
 #if defined(sun)
 		(void) _lwp_kill(dpr->dpr_tid, SIGCANCEL);
 #else
-		pthread_kill(dpr->dpr_tid, SIGUSR1);
+		pthread_kill(dpr->dpr_tid, SIGTHR);
 #endif
 
 		/*



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