From 7a4cd8d366f73caa3a5f3aed0435291fe3379d2b Mon Sep 17 00:00:00 2001 From: David Xu Date: Tue, 12 Apr 2005 03:13:49 +0000 Subject: [PATCH] Conditionally report initial thread event. --- lib/libthr/thread/thr_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/libthr/thread/thr_init.c b/lib/libthr/thread/thr_init.c index 7636fecf45f..a53259015f1 100644 --- a/lib/libthr/thread/thr_init.c +++ b/lib/libthr/thread/thr_init.c @@ -309,7 +309,8 @@ _libpthread_init(struct pthread *curthread) _thr_initial = curthread; SIGDELSET(oldset, SIGCANCEL); __sys_sigprocmask(SIG_SETMASK, &oldset, NULL); - _thr_report_creation(curthread, curthread); + if (_thread_event_mask & TD_CREATE) + _thr_report_creation(curthread, curthread); } }