Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ClamAV: devel
ClamAV milter doesn't close stdout/err when using syslog
 

Index | Next | Previous | View Flat


cmadams at hiwaay

Jul 25, 2008, 7:20 AM


Views: 532
Permalink
ClamAV milter doesn't close stdout/err when using syslog

If you configure clamav-milter to use syslog instead of a log file, it
does not properly close stdout and stderr when daemonizing. The patch
below fixes this.
--
Chris Adams <cmadams[at]hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.


diff -urN clamav-0.93.3-dist/clamav-milter/clamav-milter.c clamav-0.93.3/clamav-milter/clamav-milter.c
--- clamav-0.93.3-dist/clamav-milter/clamav-milter.c 2008-07-25 09:04:15.000000000 -0500
+++ clamav-0.93.3/clamav-milter/clamav-milter.c 2008-07-25 09:09:01.000000000 -0500
@@ -1858,6 +1858,8 @@
}
dup(consolefd);
#else
+ close(1);
+ open("/dev/null", O_WRONLY);
logg_file = NULL;
#endif
}
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

Subject User Time
ClamAV milter doesn't close stdout/err when using syslog cmadams at hiwaay Jul 25, 2008, 7:20 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.