summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_kern.c
diff options
context:
space:
mode:
authorSuleiman Souhlal <ssouhlal@FreeBSD.org>2004-09-24 06:36:31 +0000
committerSuleiman Souhlal <ssouhlal@FreeBSD.org>2004-09-24 06:36:31 +0000
commiteea4bca56be11a8eb51f4722a3d9d04627400ff5 (patch)
tree258538dd7bf38acee696a0560c07ea14dcddc65d /lib/libpthread/thread/thr_kern.c
parent48c8620ae4bc74e5583c464bd63d6cbed07966f6 (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_kern.c')
-rw-r--r--lib/libpthread/thread/thr_kern.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libpthread/thread/thr_kern.c b/lib/libpthread/thread/thr_kern.c
index ac8bf5af2b23..417e4b841f0d 100644
--- a/lib/libpthread/thread/thr_kern.c
+++ b/lib/libpthread/thread/thr_kern.c
@@ -439,6 +439,7 @@ _kse_setthreaded(int threaded)
_kse_initial->k_kcb->kcb_kmbx.km_lwp;
_thread_activated = 1;
+#ifndef SYSTEM_SCOPE_ONLY
if (_thread_scope_system <= 0) {
/* Set current thread to initial thread */
_tcb_set(_kse_initial->k_kcb, _thr_initial->tcb);
@@ -446,10 +447,10 @@ _kse_setthreaded(int threaded)
_thr_start_sig_daemon();
_thr_setmaxconcurrency();
}
- else {
+ else
+#endif
__sys_sigprocmask(SIG_SETMASK, &_thr_initial->sigmask,
NULL);
- }
}
return (0);
}