cluster: STABLE31 - groupd: remove oom_adj

Fabio M. Di Nitto fabbione at fedoraproject.org
Wed Jan 5 08:02:08 UTC 2011


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=26d29b91174bfbf6e1b0942d59eb0216f7624406
Commit:        26d29b91174bfbf6e1b0942d59eb0216f7624406
Parent:        4b14989b663d064a81bbb1b2a3eb6a1552a1ca61
Author:        Fabio M. Di Nitto <fdinitto at redhat.com>
AuthorDate:    Wed Jan 5 09:01:24 2011 +0100
Committer:     Fabio M. Di Nitto <fdinitto at redhat.com>
CommitterDate: Wed Jan 5 09:01:24 2011 +0100

groupd: remove oom_adj

even if groupd is "dead", let's keep it current as long as we ship the code.

Signed-off-by: Fabio M. Di Nitto <fdinitto at redhat.com>
---
 group/daemon/main.c |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)

diff --git a/group/daemon/main.c b/group/daemon/main.c
index 3218f92..317a29c 100644
--- a/group/daemon/main.c
+++ b/group/daemon/main.c
@@ -983,18 +983,6 @@ static void read_arguments(int argc, char **argv)
 	}
 }
 
-static void set_oom_adj(int val)
-{
-	FILE *fp;
-
-	fp = fopen("/proc/self/oom_adj", "w");
-	if (!fp)
-		return;
-
-	fprintf(fp, "%i", val);
-	fclose(fp);
-}
-
 static void set_scheduler(void)
 {
 	struct sched_param sched_param;
@@ -1035,7 +1023,6 @@ int main(int argc, char *argv[])
 	log_level(LOG_INFO, "groupd %s", RELEASE_VERSION);
 	signal(SIGTERM, sigterm_handler);
 	set_scheduler();
-	set_oom_adj(-16);
 
 	loop();
 


More information about the cluster-commits mailing list