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
This commit is contained in:
George V. Neville-Neil 2012-04-13 20:22:08 +00:00
parent c4d87335a8
commit 72cc304aba

View File

@ -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
/*