diff --git a/ChangeLog.GNUstep b/ChangeLog.GNUstep index bb7d59e..12c9105 100644 --- a/ChangeLog.GNUstep +++ b/ChangeLog.GNUstep @@ -1,3 +1,8 @@ +2003-11-22 Adam Fedor + + * thr-posix.c (__objc_init_thread_system): Set scope to + PTHREAD_SCOPE_SYSTEM. + 2003-08-31 Adam Fedor * selector.c (__objc_register_instance_methods_to_class): Free diff --git a/thr-posix.c b/thr-posix.c index 4dda0cb..2ce34eb 100644 --- a/thr-posix.c +++ b/thr-posix.c @@ -55,7 +55,9 @@ __objc_init_thread_system(void) */ if (pthread_attr_init(&_objc_thread_attribs) == 0) { - if (pthread_attr_setdetachstate(&_objc_thread_attribs, + if (pthread_attr_setscope(&_objc_thread_attribs, + PTHREAD_SCOPE_SYSTEM) == 0 + && pthread_attr_setdetachstate(&_objc_thread_attribs, PTHREAD_CREATE_DETACHED) == 0) return 0; }