From 697b4b49bed4b6393ad5e89166d925c8f0993e84 Mon Sep 17 00:00:00 2001 From: David Xu Date: Thu, 6 Mar 2008 02:07:18 +0000 Subject: [PATCH] Don't report death event to debugger if it is a forced exit. --- lib/libthr/thread/thr_exit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libthr/thread/thr_exit.c b/lib/libthr/thread/thr_exit.c index 47eb0d21778..7d902ca48ca 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); /*