Split out BacktraceAllThreads() and do so when signaled with SIGUSR1.

This commit is contained in:
Steve Checkoway
2006-01-11 06:19:47 +00:00
parent db70c7fc8d
commit 963e3aab2a
2 changed files with 35 additions and 18 deletions
@@ -33,8 +33,11 @@ static int signals[] =
{
SIGALRM, SIGBUS, SIGFPE, SIGHUP, SIGILL, SIGINT, SIGABRT,
SIGQUIT, SIGSEGV, SIGTRAP, SIGTERM, SIGVTALRM, SIGXCPU, SIGXFSZ,
#if defined(HAVE_DECL_SIGPWR) && HAVE_DECL_SIGPWR
#if defined(HAVE_DECL_SIGPWR)
SIGPWR,
#endif
#if defined(HAVE_DECL_SIGUSR1)
SIGUSR1,
#endif
-1
};