svn commit: r234496 - stable/8/cddl/contrib/opensolaris/lib/libdtrace/common

George V. Neville-Neil gnn at FreeBSD.org
Fri Apr 20 16:09:28 UTC 2012


Author: gnn
Date: Fri Apr 20 16:09:28 2012
New Revision: 234496
URL: http://svn.freebsd.org/changeset/base/234496

Log:
  MFC: 234234
  
  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.

Modified:
  stable/8/cddl/contrib/opensolaris/lib/libdtrace/common/dt_proc.c
Directory Properties:
  stable/8/cddl/contrib/opensolaris/   (props changed)

Modified: stable/8/cddl/contrib/opensolaris/lib/libdtrace/common/dt_proc.c
==============================================================================
--- stable/8/cddl/contrib/opensolaris/lib/libdtrace/common/dt_proc.c	Fri Apr 20 15:56:51 2012	(r234495)
+++ stable/8/cddl/contrib/opensolaris/lib/libdtrace/common/dt_proc.c	Fri Apr 20 16:09:28 2012	(r234496)
@@ -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
 
 		/*


More information about the svn-src-stable mailing list