(pthread_attr_setschedpolicy): Don't check whether caller is root.
authordrepper <drepper>
Thu, 16 Jul 1998 10:54:21 +0000 (10:54 +0000)
committerdrepper <drepper>
Thu, 16 Jul 1998 10:54:21 +0000 (10:54 +0000)
linuxthreads/attr.c

index b561003..7a09985 100644 (file)
@@ -96,8 +96,6 @@ int pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy)
 {
   if (policy != SCHED_OTHER && policy != SCHED_FIFO && policy != SCHED_RR)
     return EINVAL;
-  if (policy != SCHED_OTHER && geteuid() != 0)
-    return ENOTSUP;
   attr->schedpolicy = policy;
   return 0;
 }