Conditionally report initial thread event.

This commit is contained in:
David Xu 2005-04-12 03:13:49 +00:00
parent 4faae5e992
commit 7a4cd8d366
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144925

View file

@ -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);
}
}