http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4949

           Summary: spamd shutting down when unable to fork new processes
           Product: Spamassassin
           Version: 3.1.0
          Platform: Other
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P5
         Component: spamc/spamd
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


running into an issue where spamd is shutting down when it is unable to spawn
new processes.

This is the type of error that is appearing in the servers log files.  This is
happening on several similar freebsd production servers.  I believe most of them
are using perl 5.8.1. (taken out the host name for security.  and only posted
relevant log entries to make it easier to read.)

May 15 18:31:38 ------- spamd[11399]: spamd: fork: Resource temporarily
unavailable at /usr/local/bin/spamd line 828.
May 15 18:31:40 ------- spamc[95558]: connect(AF_UNIX) to spamd
/var/run/spamd.sock failed: Connection refused
May 15 18:31:40 ------- spamc[95555]: connect(AF_UNIX) to spamd
/var/run/spamd.sock failed: Connection refused

after that checking the server logs show that the spamd is no longer running.

Checking the code on line 828 shows that spamd die's if the fork() fails.
     827   $pid = fork();
     828   die "spamd: fork: $!" unless defined $pid;

This seams less than ideal for a production environment where running out of
processes may only be a temporary condition of the server and not a citical
error.  It may be better to have spamd handle the error internally by refusing
the incoming connection but continue to run.

If there is already a remedy for this please let me know.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to