diff options
author | gnn <gnn@FreeBSD.org> | 2012-04-13 20:22:08 +0000 |
---|---|---|
committer | gnn <gnn@FreeBSD.org> | 2012-04-13 20:22:08 +0000 |
commit | 9cc42fd8d2df5d8b29dd5edb34b8cb47cb7d1f8d (patch) | |
tree | 1a64ae36e5a83ee9d12f1a7e620a8537855e6aec /cddl | |
parent | 4cba6f70cf594650619c340d6ff4ae062f305bab (diff) | |
download | FreeBSD-src-9cc42fd8d2df5d8b29dd5edb34b8cb47cb7d1f8d.zip FreeBSD-src-9cc42fd8d2df5d8b29dd5edb34b8cb47cb7d1f8d.tar.gz |
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
Diffstat (limited to 'cddl')
-rw-r--r-- | cddl/contrib/opensolaris/lib/libdtrace/common/dt_proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_proc.c b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_proc.c index 664a122..caeeaa6 100644 --- a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_proc.c +++ b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_proc.c @@ -811,7 +811,7 @@ dt_proc_destroy(dtrace_hdl_t *dtp, struct ps_prochandle *P) #if defined(sun) (void) _lwp_kill(dpr->dpr_tid, SIGCANCEL); #else - pthread_kill(dpr->dpr_tid, SIGUSR1); + pthread_kill(dpr->dpr_tid, SIGTHR); #endif /* |