summaryrefslogtreecommitdiffstats
path: root/lib/libthr
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2008-03-06 02:07:18 +0000
committerdavidxu <davidxu@FreeBSD.org>2008-03-06 02:07:18 +0000
commit6b41341850cd831c6c6a36e8fe33ef771ec7d2e8 (patch)
tree4320f344aaa8f2277371ee7a59c784293eff4d6f /lib/libthr
parent5f0ffdddf16bb5fe610d2119db427fee48117fa9 (diff)
downloadFreeBSD-src-6b41341850cd831c6c6a36e8fe33ef771ec7d2e8.zip
FreeBSD-src-6b41341850cd831c6c6a36e8fe33ef771ec7d2e8.tar.gz
Don't report death event to debugger if it is a forced exit.
Diffstat (limited to 'lib/libthr')
-rw-r--r--lib/libthr/thread/thr_exit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_exit.c b/lib/libthr/thread/thr_exit.c
index 47eb0d2..7d902ca 100644
--- a/lib/libthr/thread/thr_exit.c
+++ b/lib/libthr/thread/thr_exit.c
@@ -130,7 +130,7 @@ _pthread_exit(void *status)
if (curthread->tlflags & TLFLAGS_DETACHED)
THR_GCLIST_ADD(curthread);
THREAD_LIST_UNLOCK(curthread);
- if (SHOULD_REPORT_EVENT(curthread, TD_DEATH))
+ if (!curthread->force_exit && SHOULD_REPORT_EVENT(curthread, TD_DEATH))
_thr_report_death(curthread);
/*
OpenPOWER on IntegriCloud