This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cluster: RHEL5 - clogd: Get rid of an unused function


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=2a217af6683e519769dd96ff81d84c09fc09d499
Commit:        2a217af6683e519769dd96ff81d84c09fc09d499
Parent:        c9d6207f212f900f66c9c6990462bae328ede121
Author:        Jonathan Brassow <jbrassow@redhat.com>
AuthorDate:    Tue Feb 10 16:20:45 2009 -0600
Committer:     Jonathan Brassow <jbrassow@redhat.com>
CommitterDate: Tue Feb 10 16:20:45 2009 -0600

clogd:  Get rid of an unused function

set_priority was used to set clogd to realtime scheduling
level.  This has not been used for a while.  It is not
necessary (and causes problems if there ever is an issue).

Removing it.
---
 cmirror/src/clogd.c |   18 ------------------
 1 files changed, 0 insertions(+), 18 deletions(-)

diff --git a/cmirror/src/clogd.c b/cmirror/src/clogd.c
index 3a96de3..7ba583e 100644
--- a/cmirror/src/clogd.c
+++ b/cmirror/src/clogd.c
@@ -31,7 +31,6 @@ static void process_signals(void);
 static void daemonize(void);
 static void init_all(void);
 static void cleanup_all(void);
-static void set_priority(void);
 
 int main(int argc, char *argv[])
 {
@@ -42,8 +41,6 @@ int main(int argc, char *argv[])
 	/* Parent can now exit, we're ready to handle requests */
 	kill(getppid(), SIGTERM);
 
-	/* set_priority(); -- let's try to do w/o this */
-
 	LOG_PRINT("Starting clogd:");
 	LOG_PRINT(" Built: "__DATE__" "__TIME__"\n");
 	LOG_DBG(" Compiled with debugging.");
@@ -266,18 +263,3 @@ static void cleanup_all(void)
 	cleanup_local();
 	cleanup_cluster();
 }
-
-static void set_priority(void)
-{
-        struct sched_param sched_param;
-        int res;
-
-        res = sched_get_priority_max(SCHED_RR);
-        if (res != -1) {
-                sched_param.sched_priority = res;
-                res = sched_setscheduler(0, SCHED_RR, &sched_param);
-	}
-
-	if (res == -1)
-		LOG_ERROR("Unable to set SCHED_RR priority.");
-}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]