[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] cluster/group/dlm_controld main.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	teigland sourceware org	2006-11-15 14:33:06

Modified files:
	group/dlm_controld: main.c 

Log message:
	uncomment scheduler settings
	fix sched_priority from sdake

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/dlm_controld/main.c.diff?cvsroot=cluster&r1=1.6&r2=1.7

--- cluster/group/dlm_controld/main.c	2006/10/24 16:16:31	1.6
+++ cluster/group/dlm_controld/main.c	2006/11/15 14:33:06	1.7
@@ -389,7 +389,6 @@
 	}
 }
 
-#if 0
 void set_scheduler(void)
 {
 	struct sched_param sched_param;
@@ -397,7 +396,7 @@
 
 	rv = sched_get_priority_max(SCHED_RR);
 	if (rv != -1) {
-		sched_param.sched_priority = 2;
+		sched_param.sched_priority = rv;
 		rv = sched_setscheduler(0, SCHED_RR, &sched_param);
 		if (rv == -1)
 			log_error("could not set SCHED_RR priority %d err %d",
@@ -407,7 +406,6 @@
 			  errno);
 	}
 }
-#endif
 
 int main(int argc, char **argv)
 {
@@ -420,9 +418,7 @@
 	if (!daemon_debug_opt)
 		daemonize();
 
-#if 0
 	set_scheduler();
-#endif
 
 	return loop();
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]