97de2dc154
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/corosync?expand=0&rev=22
15 lines
669 B
Diff
15 lines
669 B
Diff
Index: corosync-1.4.4/exec/main.c
|
|
===================================================================
|
|
--- corosync-1.4.4.orig/exec/main.c
|
|
+++ corosync-1.4.4/exec/main.c
|
|
@@ -1268,7 +1268,8 @@ static void corosync_setscheduler (void)
|
|
#if defined(HAVE_PTHREAD_SETSCHEDPARAM) && defined(HAVE_SCHED_GET_PRIORITY_MAX) && defined(HAVE_SCHED_SETSCHEDULER)
|
|
int res;
|
|
|
|
- sched_priority = sched_get_priority_max (SCHED_RR);
|
|
+ /*use the minimal priority same as pacemaker */
|
|
+ sched_priority = sched_get_priority_min (SCHED_RR);
|
|
if (sched_priority != -1) {
|
|
global_sched_param.sched_priority = sched_priority;
|
|
res = sched_setscheduler (0, SCHED_RR, &global_sched_param);
|