diff options
Diffstat (limited to 'nptl/pthread_attr_setschedpolicy.c')
-rw-r--r-- | nptl/pthread_attr_setschedpolicy.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nptl/pthread_attr_setschedpolicy.c b/nptl/pthread_attr_setschedpolicy.c index 73a7c4425a..b9710d57a5 100644 --- a/nptl/pthread_attr_setschedpolicy.c +++ b/nptl/pthread_attr_setschedpolicy.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2002 Free Software Foundation, Inc. +/* Copyright (C) 2002, 2004 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@redhat.com>, 2002. @@ -39,6 +39,9 @@ __pthread_attr_setschedpolicy (attr, policy) /* Store the new values. */ iattr->schedpolicy = policy; + /* Remember we set the value. */ + iattr->flags |= ATTR_FLAG_POLICY_SET; + return 0; } strong_alias (__pthread_attr_setschedpolicy, pthread_attr_setschedpolicy) |