The version of check_privs that got added to the library must have come
from signaltest - because it doesn't have the fix that check_privs in cyclictest has - to return the sched_priority to 0 This is a good example of why common functions should be put into libraries - so all programs benefit from fixes. Signed-off-by: John Kacur <jkacur@redhat.com>
This commit is contained in:
parent
150f680979
commit
2c4267ff9a
|
@ -60,6 +60,7 @@ int check_privs(void)
|
|||
}
|
||||
|
||||
/* we're good; change back and return success */
|
||||
param.sched_priority = 0;
|
||||
sched_setscheduler(0, policy, NULL);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue