[evolution-patches] Fix for #268852 (mail/spamd)



hi,

I am attaching a fix for
http://bugzilla.gnome.org/show_bug.cgi?id=268852

We stop the daemon on exit, but still 5 children would mean a lot of
memory. I am passing "-m 1" option so that spamd spawns maximum 1 child.

Please let me know if it looks ok.

Thanks,
Vivek Jain



Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/plugins/sa-junk-plugin/ChangeLog,v
retrieving revision 1.4
diff -u -p -r1.4 ChangeLog
--- ChangeLog	3 Oct 2005 08:48:46 -0000	1.4
+++ ChangeLog	6 Oct 2005 05:01:04 -0000
@@ -1,3 +1,10 @@
+2005-10-06  Vivek Jain <jvivek novell com>
+	
+	** See Bug #268852
+	* em-junk-filter.c : (em_junk_sa_run_spamd)
+	allow max one chid to be spawned for 
+	spamd. 
+
 2005-10-03  Vivek Jain <jvivek novell com>
 
 	* em-junk-filter.c: added (e_plugin_lib_enable)
Index: em-junk-filter.c
===================================================================
RCS file: /cvs/gnome/evolution/plugins/sa-junk-plugin/em-junk-filter.c,v
retrieving revision 1.5
diff -u -p -r1.5 em-junk-filter.c
--- em-junk-filter.c	3 Oct 2005 08:48:46 -0000	1.5
+++ em-junk-filter.c	6 Oct 2005 05:01:06 -0000
@@ -311,8 +311,10 @@ em_junk_sa_run_spamd (char *binary)
 		
 	if (em_junk_sa_local_only)
 		argv[i++] = "--local";
-		
-	//argv[i++] = "--daemonize";
+
+	/* See bug #268852*/
+	argv[i++] = "--max-children=1";
+	/*argv[i++] = "--daemonize";*/
 	argv[i++] = "--pidfile";
 	argv[i++] = em_junk_sa_spamd_pidfile;
 	argv[i] = NULL;


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