http://www.hughes-family.org/bugzilla/show_bug.cgi?id=124

           Summary: spamd pid patch
           Product: Spamassassin
           Version: 1.5
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: docs
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Since I use lynx which doesn't support file uploads, you're going to have to
live with this patch being in the message rather than an attachment.
Muahahahahah.

--- spamd.raw.orig      Wed Mar 13 16:28:34 2002
+++ spamd.raw   Wed Mar 13 16:26:54 2002
@@ -558,6 +558,7 @@
     my ($sig) = @_;
     logmsg "server killed by SIG$sig, shutting down";
     close Server;
+    unlink("/var/run/spamd.pid");
     exit 0;
 }

@@ -571,6 +572,9 @@
     exit if $pid;
     setsid or die "Can't start new session: $!";
     open STDERR,'>&STDOUT' or die "Can't duplicate stdout: $!";
+    open PIDF,'>/var/run/spamd.pid' or die "Can't open PID file: $!";
+    print PIDF $$;
+    close PIDF;
 }

 =head1 NAME



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

_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to