From 6cc36db4f9ffbe79d5675b40a597954acee7e7aa Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Sun, 2 Feb 2014 23:33:55 +0100 Subject: [PATCH] libc_r: Check attr.sched_inherit for PTHREAD_INHERIT_SCHED, not attr.flags. --- lib/libc_r/uthread/uthread_create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc_r/uthread/uthread_create.c b/lib/libc_r/uthread/uthread_create.c index 0d6bcbde00..26537604b1 100644 --- a/lib/libc_r/uthread/uthread_create.c +++ b/lib/libc_r/uthread/uthread_create.c @@ -210,7 +210,7 @@ _pthread_create(pthread_t *thread, const pthread_attr_t *attr, * Check if this thread is to inherit the scheduling * attributes from its parent: */ - if (new_thread->attr.flags & PTHREAD_INHERIT_SCHED) { + if (new_thread->attr.sched_inherit & PTHREAD_INHERIT_SCHED) { /* Copy the scheduling attributes: */ new_thread->base_priority = curthread->base_priority & -- 2.41.0