Minor cleanup

git-svn-id: https://svn.perl.org/qpsmtpd/trunk@462 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
Matt Sergeant 2005-07-05 15:20:40 +00:00
parent 698fc01595
commit 4b72a40100
1 changed files with 3 additions and 4 deletions

View File

@ -140,11 +140,10 @@ $> = $quid;
while (1) {
REAPER();
my $running = scalar keys %childstatus;
while ($running >= $MAXCONN) {
if ($running >= $MAXCONN) {
::log(LOGINFO,"Too many connections: $running >= $MAXCONN. Waiting one second.");
sleep(1) ;
REAPER();
$running = scalar keys %childstatus;
sleep(1);
next;
}
if (!$sel->can_read(1)) {
next;