https://issues.apache.org/SpamAssassin/show_bug.cgi?id=5950





--- Comment #11 from Sidney Markowitz <[EMAIL PROTECTED]>  2008-08-05 14:15:18 
PST ---
(In reply to comment #10)

Ah, a second look showed that I had misread the problem about portability of
WNOHANG. I thought I had read that not all platforms support WNOHANG. What it
actually said was:

Most systems support a non-blocking waitpid. Use Perl's standard Config.pm
module to find out:

use Config;
$has_nonblocking = $Config{d_waitpid} eq "define" ||
                   $Config{d_wait4}   eq "define";

So it is waitpid itself that is not completely portable, and since we use it
(as well as WNOHANG) I won't worry about using it here.

> 5 secs is pretty short under extremely heavy load.... but 30 would be plenty

Yes, I was surprised to discover that it takes 4 seconds on my Macbook with
nothing loadinng it down. And 30 is too long to simply sleep without using
SIGUSR1. I'll code up a patch now.


-- 
Configure bugmail: 
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to