You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jm...@apache.org on 2004/01/13 09:03:19 UTC
svn commit: rev 6154 - incubator/spamassassin/trunk/spamd
Author: jm
Date: Tue Jan 13 00:03:18 2004
New Revision: 6154
Modified:
incubator/spamassassin/trunk/spamd/spamd.raw
Log:
spamd -m default was not taking effect; fixed
Modified: incubator/spamassassin/trunk/spamd/spamd.raw
==============================================================================
--- incubator/spamassassin/trunk/spamd/spamd.raw (original)
+++ incubator/spamassassin/trunk/spamd/spamd.raw Tue Jan 13 00:03:18 2004
@@ -236,10 +236,12 @@
my $kidslimit = 5; # max number of kids allowed
my $kidsfree = 5; # number we can spawn before hitting $kidslimit
-if ($opt{'max-children'} && $opt{'max-children'} > 0) {
- $kidslimit = $kidsfree = $opt{'max-children'};
-} else {
- $kidslimit = $kidsfree = 99999;
+if (defined $opt{'max-children'}) {
+ if ($opt{'max-children'} > 0) {
+ $kidslimit = $kidsfree = $opt{'max-children'};
+ } else { # unlimited
+ $kidslimit = $kidsfree = 99999;
+ }
}
# Untaint the pidfile path before we use it