diff options
author | deischen <deischen@FreeBSD.org> | 2006-03-06 05:02:28 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2006-03-06 05:02:28 +0000 |
commit | 6401ef60bd59c05126a12e332c4d5013372c9e34 (patch) | |
tree | 66e0ad6cb27877bf851261f4ff6ba3a77b571418 /lib/libpthread/thread/thr_init.c | |
parent | ea2809ea3b33504640ada4abf4cfc29d33e3cbb0 (diff) | |
download | FreeBSD-src-6401ef60bd59c05126a12e332c4d5013372c9e34.zip FreeBSD-src-6401ef60bd59c05126a12e332c4d5013372c9e34.tar.gz |
Only catch SIGINFO (for dumping thread states) when LIBPTHREAD_DEBUG
is defined in the environment.
Requested by: jmg & a few others
Diffstat (limited to 'lib/libpthread/thread/thr_init.c')
-rw-r--r-- | lib/libpthread/thread/thr_init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libpthread/thread/thr_init.c b/lib/libpthread/thread/thr_init.c index 7945ed9..ac04336 100644 --- a/lib/libpthread/thread/thr_init.c +++ b/lib/libpthread/thread/thr_init.c @@ -518,6 +518,8 @@ init_private(void) else if (getenv("LIBPTHREAD_PROCESS_SCOPE") != NULL) _thread_scope_system = -1; #endif + if (getenv("LIBPTHREAD_DEBUG") != NULL) + _thr_debug_flags |= DBG_INFO_DUMP; /* * _thread_list_lock and _kse_count are initialized |