Hello,

The attached patch removes the pidfile on shutdown for the milter.  Low
priority, but it would be nice if it could clean up after itself fully
:)

--- clamav-0.83.old/clamav-milter/clamav-milter.c   2005-02-13 
16:44:28.000000000 -0500
+++ clamav-0.83/clamav-milter/clamav-milter.c       2005-02-16 
12:31:24.622042712 -0500
@@ -794,6 +794,7 @@
 static void    quit(void);
 static void    broadcast(const char *mess);
 static int     loadDatabase(void);
+const char *pidfile = NULL;

 #ifdef SESSION
 static pthread_mutex_t version_mutex = PTHREAD_MUTEX_INITIALIZER;
@@ -5047,6 +5048,9 @@
                        perror(tmpdir);

        broadcast(_("Stopping clamav-milter"));
+       if (pidfile) {
+         unlink(pidfile);
+       }
 }

 static void

-- 
 --------------------------------------------------------------------------
|  Stephen Gran                  | Go slowly to the entertainments of thy  |
|  [EMAIL PROTECTED]             | friends, but quickly to their           |
|  http://www.lobefin.net/~steve | misfortunes.   -- Chilo                 |
 --------------------------------------------------------------------------

Attachment: pgpUKJYnERwsx.pgp
Description: PGP signature

_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-devel

Reply via email to