timeout-failure in mailscanner
Piper Andreas
pipera at HRZ.UNI-MARBURG.DE
Wed Jan 23 14:23:44 GMT 2002
Hello all,
there seems to be a small, but malicious bug in mailscanners sweep.pl (all
versions, I assume), which corrupts the killing of a timed-out virus-scan-
process and gets mailscanner stuck, if the process can't be killed with the
first 'kill -15' (which happened here with a .exe-attachment and
mcafee-VirusScan)
I did some digging and ended up with the following patch (for version 3.03,
should be quite similar for earlier versions), which solved the problem for
my site:
*** sweep.pl.orig Wed Jan 23 14:50:20 2002
--- sweep.pl Wed Jan 23 14:50:34 2002
***************
*** 348,350 ****
sleep 1;
! ($pid=0),last if kill(0, $pid);
kill -15, $pid;
--- 348,350 ----
sleep 1;
! ($pid=0),last unless kill(0, $pid);
kill -15, $pid;
________________________________________________________________________
Dr. Andreas Piper, Hochschulrechenzentrum der Philipps-Univ. Marburg
Hans-Meerwein-Strasse, 35032 Marburg, Germany
Phone: +49 6421 28-23521 Fax: -26994 Email: piper at HRZ.Uni-Marburg.DE
More information about the MailScanner
mailing list