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:
John Kacur 2009-12-14 16:19:59 +01:00
parent 150f680979
commit 2c4267ff9a
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}