[ntpsec commit] Assuming POSIX.1-2001, PTHREAD_SCOPE_SYSTEM will always be defined.

Eric S. Raymond esr at ntpsec.org
Wed Sep 30 02:43:05 UTC 2015


Module:    ntpsec
Branch:    master
Commit:    fbda524db1de6923f55b98b740b2e053b68ace66
Changeset: http://git.ntpsec.org/ntpsec/commit/?id=fbda524db1de6923f55b98b740b2e053b68ace66

Author:    Eric S. Raymond <esr at thyrsus.com>
Date:      Tue Sep 29 22:42:26 2015 -0400

Assuming POSIX.1-2001, PTHREAD_SCOPE_SYSTEM will always be defined.

---

 libntp/work_thread.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libntp/work_thread.c b/libntp/work_thread.c
index 63dc211..a320781 100644
--- a/libntp/work_thread.c
+++ b/libntp/work_thread.c
@@ -448,9 +448,7 @@ start_blocking_thread_internal(
 #else
 	UNUSED_ARG(stacksize);
 #endif
-#if defined(PTHREAD_SCOPE_SYSTEM) && defined(NEED_PTHREAD_SCOPE_SYSTEM)
 	pthread_attr_setscope(&thr_attr, PTHREAD_SCOPE_SYSTEM);
-#endif
 	c->thread_ref = emalloc_zero(sizeof(*c->thread_ref));
 	block_thread_signals(&saved_sig_mask);
 	rc = pthread_create(c->thread_ref, &thr_attr,



More information about the vc mailing list