mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 05:02:10 +00:00
some more priority tweaks
This commit is contained in:
+1
-1
@@ -736,7 +736,7 @@ SWITCH_DECLARE(int32_t) set_realtime_priority(void)
|
||||
char data[] = "-1\n";
|
||||
struct sched_param sched = { 0 };
|
||||
sched.sched_priority = SWITCH_PRI_LOW;
|
||||
if (sched_setscheduler(0, SCHED_RR, &sched)) {
|
||||
if (sched_setscheduler(0, SCHED_FIFO, &sched)) {
|
||||
sched.sched_priority = 0;
|
||||
if (sched_setscheduler(0, SCHED_OTHER, &sched)) {
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user