From 31e4df4d79b86f676cd01a3e8d04589a03dc62eb Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Sun, 28 May 2006 22:13:52 +0000 Subject: [PATCH] sched_setscheduler was passing wrong argument git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1056 fd59a12c-fef9-0310-b244-a6a79926bd2f --- exec/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/main.c b/exec/main.c index 55d34412..b2263d94 100644 --- a/exec/main.c +++ b/exec/main.c @@ -265,7 +265,7 @@ static void aisexec_setscheduler (void) res = sched_get_priority_max (SCHED_RR); if (res != -1) { sched_param.sched_priority = res; - res = sched_setscheduler (1, SCHED_RR, &sched_param); + res = sched_setscheduler (0, SCHED_RR, &sched_param); if (res == -1) { log_printf (LOG_LEVEL_WARNING, "Could not set SCHED_RR at priority %d: %s\n", sched_param.sched_priority, strerror (errno));