This change should fix it:

Index: spamd.raw
===================================================================
RCS file: /cvsroot/spamassassin/spamassassin/spamd/spamd.raw,v
retrieving revision 1.159
diff -u -r1.159 spamd.raw
--- spamd.raw   1 Jan 2003 17:06:37 -0000       1.159
+++ spamd.raw   6 Jan 2003 16:16:41 -0000
@@ -988,7 +988,7 @@
   my $kid;
   do {
     $kid = waitpid(-1,&WNOHANG);
-  } until $kid == -1;
+  } while $kid > 0;
 }
 

Problem is, it's spinning, and never getting back to where it can fork
again cause there is still a child running. 

-- Nathan

------------------------------------------------------------
Nathan Neulinger                       EMail:  [EMAIL PROTECTED]
University of Missouri - Rolla         Phone: (573) 341-4841
Computing Services                       Fax: (573) 341-4216


> -----Original Message-----
> From: Neulinger, Nathan 
> Sent: Monday, January 06, 2003 9:59 AM
> To: [EMAIL PROTECTED]
> Subject: [SAtalk] spamd only forking single child
> 
> 
> Anyone know of any reason that spamd would only for a single child?
> stracing the process I'm seeing it spin in wait4, but it's not ever
> forking more than one child process to handle incoming requests.
> Needless to say this is having a bad impact on performance.
> 
> Running with 2.50-cvs.
> 
> -- Nathan
> 
> ------------------------------------------------------------
> Nathan Neulinger                       EMail:  [EMAIL PROTECTED]
> University of Missouri - Rolla         Phone: (573) 341-4841
> Computing Services                       Fax: (573) 341-4216
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Spamassassin-talk mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/spamassassin-talk
> 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to