diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2004-08-07 15:15:38 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2004-08-07 15:15:38 +0000 |
| commit | 00be1d3d12712e135e623008af4c7038730e61a3 (patch) | |
| tree | a52137064a9f6d0ca8cd37a63377945781591df2 /lib/libpthread/thread/thr_create.c | |
| parent | ea39d07d2a9079982946d46e4ff61e14bf37a957 (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_create.c')
| -rw-r--r-- | lib/libpthread/thread/thr_create.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libpthread/thread/thr_create.c b/lib/libpthread/thread/thr_create.c index 9682fcf0ce96..8c4592af7e8e 100644 --- a/lib/libpthread/thread/thr_create.c +++ b/lib/libpthread/thread/thr_create.c @@ -126,9 +126,8 @@ _pthread_create(pthread_t * thread, const pthread_attr_t * attr, */ } } -#ifdef SYSTEM_SCOPE_ONLY - new_thread->attr.flags |= PTHREAD_SCOPE_SYSTEM; -#endif + if (_thread_scope_system != 0) + new_thread->attr.flags |= PTHREAD_SCOPE_SYSTEM; if (create_stack(&new_thread->attr) != 0) { /* Insufficient memory to create a stack: */ ret = EAGAIN; |
