From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6723 invoked by alias); 10 Feb 2009 22:22:15 -0000 Received: (qmail 6711 invoked by alias); 10 Feb 2009 22:22:15 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_43,SARE_SUB_GETRID,SPF_HELO_PASS X-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_43,SARE_SUB_GETRID,SPF_HELO_PASS X-Spam-Check-By: sourceware.org X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bastion.fedora.phx.redhat.com Subject: cluster: RHEL5 - clogd: Get rid of an unused function To: cluster-cvs-relay@redhat.com X-Project: Cluster Project X-Git-Module: cluster.git X-Git-Refname: refs/heads/RHEL5 X-Git-Reftype: branch X-Git-Oldrev: c9d6207f212f900f66c9c6990462bae328ede121 X-Git-Newrev: 2a217af6683e519769dd96ff81d84c09fc09d499 From: Jonathan Brassow Message-Id: <20090210222142.4E9D812011A@lists.fedorahosted.org> Date: Tue, 10 Feb 2009 22:22:00 -0000 X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 Mailing-List: contact cluster-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cluster-cvs-owner@sourceware.org X-SW-Source: 2009-q1/txt/msg00406.txt.bz2 Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=2a217af6683e519769dd96ff81d84c09fc09d499 Commit: 2a217af6683e519769dd96ff81d84c09fc09d499 Parent: c9d6207f212f900f66c9c6990462bae328ede121 Author: Jonathan Brassow AuthorDate: Tue Feb 10 16:20:45 2009 -0600 Committer: Jonathan Brassow 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."); -}