sanitycheck should be looking for SCHED_FIFO
git-svn-id: svn://localhost/ardour2/branches/3.0@8783 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
b7ec5b4b40
commit
a8cc2b5a74
@ -249,13 +249,13 @@ int system_user_can_rtprio() {
|
|||||||
|
|
||||||
memset(&schparam, 0, sizeof(struct sched_param));
|
memset(&schparam, 0, sizeof(struct sched_param));
|
||||||
|
|
||||||
if (-1 == (min_prio = sched_get_priority_min(SCHED_RR))) {
|
if (-1 == (min_prio = sched_get_priority_min(SCHED_FIFO))) {
|
||||||
perror("sched_get_priority");
|
perror("sched_get_priority");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
schparam.sched_priority = min_prio;
|
schparam.sched_priority = min_prio;
|
||||||
|
|
||||||
if (0 == sched_setscheduler(0, SCHED_RR, &schparam)) {
|
if (0 == sched_setscheduler(0, SCHED_FIFO, &schparam)) {
|
||||||
// TODO: restore previous state
|
// TODO: restore previous state
|
||||||
schparam.sched_priority = 0;
|
schparam.sched_priority = 0;
|
||||||
if (0 != sched_setscheduler(0, SCHED_OTHER, &schparam)) {
|
if (0 != sched_setscheduler(0, SCHED_OTHER, &schparam)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user