diff options
author | John Kacur <jkacur@redhat.com> | 2009-12-14 16:19:59 +0100 |
---|---|---|
committer | John Kacur <jkacur@redhat.com> | 2009-12-14 16:19:59 +0100 |
commit | 2c4267ff9adcba69aaa6d4157f16b68fddc14ba2 (patch) | |
tree | 76e02fda60ebdd558047dc223407fdd59962fe0a | |
parent | 150f680979d590ed0314f954c32c308eee7b476d (diff) | |
download | rt-tests-2c4267ff9adcba69aaa6d4157f16b68fddc14ba2.tar.gz |
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>
-rw-r--r-- | src/lib/rt-utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/rt-utils.c b/src/lib/rt-utils.c index 4e7597c..417c38b 100644 --- a/src/lib/rt-utils.c +++ b/src/lib/rt-utils.c @@ -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; } |