1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
From: Uwe Kleine-König <[email protected]>
Subject: Don't reference non-standard realtime group
There is no dedicated realtime group in most distributions. So make the
error message a bit more understandable for people not running Redhat
MRG.
Signed-off-by: Uwe Kleine-König <[email protected]>
Forwarded: id:[email protected]
Closes: http://bugs.debian.org/619938
---
src/lib/rt-utils.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/src/lib/rt-utils.c
+++ b/src/lib/rt-utils.c
@@ -271,7 +271,8 @@
param.sched_priority = 1;
if (sched_setscheduler(0, SCHED_FIFO, ¶m)) {
fprintf(stderr, "Unable to change scheduling policy!\n");
- fprintf(stderr, "either run as root or join realtime group\n");
+ fprintf(stderr, "Probably missing capabilities, either run as "
+ "root or increase RLIMIT_RTPRIO limits.\n");
return 1;
}
|