/[Apache-SVN]/spamassassin/trunk/spamd/spamd.raw
ViewVC logotype

Diff of /spamassassin/trunk/spamd/spamd.raw

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- spamassassin/trunk/spamd/spamd.raw	2005/06/02 05:08:46	179512
+++ spamassassin/trunk/spamd/spamd.raw	2005/06/02 05:18:39	179513
@@ -732,11 +732,6 @@ info("spamd: server started on $listenin
 
 my $remote_port;
 
-# Fork off our children.
-for ( 1 .. $childlimit ) {
-  spawn();
-}
-
 # Make the pidfile ...
 if (defined $opt{'pidfile'}) {
   if (open PIDF, ">$opt{'pidfile'}") {
@@ -752,6 +747,11 @@ if (defined $opt{'pidfile'}) {
 # The test suite does this!
 info("spamd: server pid: $$\n");
 
+# Fork off our children.
+for ( 1 .. $childlimit ) {
+  spawn();
+}
+
 if ($scaling) {
   $scaling->set_server_fh($server);
 }
@@ -1988,8 +1988,8 @@ sub child_handler {
     }
 
     unless ($$Mail::SpamAssassin::Logger::LOG_SA{INHIBIT_LOGGING_IN_SIGCHLD_HANDLER}) {
-      info("spamd: handled cleanup of child pid $pid " .
-	   (defined $sig) ? "due to SIG$sig" : "");
+      info("spamd: handled cleanup of child pid $pid ".
+                ((defined $sig) ? "due to SIG$sig" : ""));
     }
   }
 

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26