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

View File

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