summaryrefslogtreecommitdiff
path: root/lib/libthr/thread/thr_init.c
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2005-04-12 03:13:49 +0000
committerDavid Xu <davidxu@FreeBSD.org>2005-04-12 03:13:49 +0000
commit7a4cd8d366f73caa3a5f3aed0435291fe3379d2b (patch)
treee0bc603590c3e526eecee8d96d229fc45dc85ce6 /lib/libthr/thread/thr_init.c
parent4faae5e9927161c590514a457a87a59da46fce20 (diff)
Notes
Diffstat (limited to 'lib/libthr/thread/thr_init.c')
-rw-r--r--lib/libthr/thread/thr_init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_init.c b/lib/libthr/thread/thr_init.c
index 7636fecf45fc..a53259015f11 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);
}
}