public inbox for cluster-cvs@sourceware.org help / color / mirror / Atom feed
From: Jonathan Brassow <jbrassow@fedoraproject.org> To: cluster-cvs-relay@redhat.com Subject: cluster: RHEL5 - clogd: Get rid of an unused function Date: Tue, 10 Feb 2009 22:22:00 -0000 [thread overview] Message-ID: <20090210222142.4E9D812011A@lists.fedorahosted.org> (raw) 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."); -}
reply other threads:[~2009-02-10 22:22 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20090210222142.4E9D812011A@lists.fedorahosted.org \ --to=jbrassow@fedoraproject.org \ --cc=cluster-cvs-relay@redhat.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).