diff options
author | joseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d> | 2013-04-28 15:21:50 +0000 |
---|---|---|
committer | joseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d> | 2013-04-28 15:21:50 +0000 |
commit | c19459a92177fc8864b461e84d017a21c4006dc5 (patch) | |
tree | fcf20ad0222de01ad3a955edb3b65b06724a3a15 /libc/nptl/pthread_attr_setschedpolicy.c | |
parent | 8751114637bcc3caaf16a4216da0afb84456558a (diff) |
Merge changes between r22663 and r22954 from /fsf/trunk.
git-svn-id: svn://svn.eglibc.org/trunk@22955 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'libc/nptl/pthread_attr_setschedpolicy.c')
-rw-r--r-- | libc/nptl/pthread_attr_setschedpolicy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/nptl/pthread_attr_setschedpolicy.c b/libc/nptl/pthread_attr_setschedpolicy.c index 2fa692169..4fe0b8e10 100644 --- a/libc/nptl/pthread_attr_setschedpolicy.c +++ b/libc/nptl/pthread_attr_setschedpolicy.c @@ -32,8 +32,9 @@ __pthread_attr_setschedpolicy (attr, policy) iattr = (struct pthread_attr *) attr; /* Catch invalid values. */ - if (policy != SCHED_OTHER && policy != SCHED_FIFO && policy != SCHED_RR) - return EINVAL; + int ret = check_sched_policy_attr (policy); + if (ret) + return ret; /* Store the new values. */ iattr->schedpolicy = policy; |