pthread: have pthread_setschedparam return 0 on success.

* fixes #13299.
This commit is contained in:
Jérôme Duval 2017-02-14 20:48:43 +01:00
parent ab4bd5d3ce
commit 90acbbfecb

View File

@ -291,7 +291,9 @@ pthread_setschedparam(pthread_t thread, int policy,
status = _kern_set_thread_priority(thread->id, param->sched_priority);
if (status == B_BAD_THREAD_ID)
return ESRCH;
return status;
if (status < B_OK)
return status;
return 0;
}