about summary refs log tree commit diff
path: root/src/thread/pthread_attr_setschedparam.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/pthread_attr_setschedparam.c')
-rw-r--r--src/thread/pthread_attr_setschedparam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/pthread_attr_setschedparam.c b/src/thread/pthread_attr_setschedparam.c
index 77ce9c98..d4c1204f 100644
--- a/src/thread/pthread_attr_setschedparam.c
+++ b/src/thread/pthread_attr_setschedparam.c
@@ -2,6 +2,6 @@
 
 int pthread_attr_setschedparam(pthread_attr_t *restrict a, const struct sched_param *restrict param)
 {
-	if (param->sched_priority) return ENOTSUP;
+	a->_a_prio = param->sched_priority;
 	return 0;
 }