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