summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2005-04-12 03:13:49 +0000
committerdavidxu <davidxu@FreeBSD.org>2005-04-12 03:13:49 +0000
commit3093d067e44a453f3928c9dde355c6257dc96e3f (patch)
treee0bc603590c3e526eecee8d96d229fc45dc85ce6 /lib
parentbc36c64c8d87b8cef07de9c40b282f4cf79339f6 (diff)
downloadFreeBSD-src-3093d067e44a453f3928c9dde355c6257dc96e3f.zip
FreeBSD-src-3093d067e44a453f3928c9dde355c6257dc96e3f.tar.gz
Conditionally report initial thread event.
Diffstat (limited to 'lib')
-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 7636fec..a532590 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);
}
}
OpenPOWER on IntegriCloud