diff options
author | ssouhlal <ssouhlal@FreeBSD.org> | 2004-09-24 06:36:31 +0000 |
---|---|---|
committer | ssouhlal <ssouhlal@FreeBSD.org> | 2004-09-24 06:36:31 +0000 |
commit | 650224c28704bbb05304573986a08bb3a57d2172 (patch) | |
tree | 258538dd7bf38acee696a0560c07ea14dcddc65d /lib/libkse/thread/thr_kern.c | |
parent | b4a1d559bdef99b2b84f7baf1cc8a70dab1b43bf (diff) | |
download | FreeBSD-src-650224c28704bbb05304573986a08bb3a57d2172.zip FreeBSD-src-650224c28704bbb05304573986a08bb3a57d2172.tar.gz |
Make sure we don't call _thr_start_sig_daemon() when SYSTEM_SCOPE_ONLY is defined. This makes libpthread usable on powerpc.
Approved by: grehan (mentor), deischen
Diffstat (limited to 'lib/libkse/thread/thr_kern.c')
-rw-r--r-- | lib/libkse/thread/thr_kern.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libkse/thread/thr_kern.c b/lib/libkse/thread/thr_kern.c index ac8bf5a..417e4b8 100644 --- a/lib/libkse/thread/thr_kern.c +++ b/lib/libkse/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); } |