[PATCH 7/7] 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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux