Make sure we process all servers after select()
git-svn-id: https://svn.perl.org/qpsmtpd/trunk@466 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
1e68345cf2
commit
3fc6a4f318
@ -159,8 +159,7 @@ while (1) {
|
|||||||
}
|
}
|
||||||
my @ready = $select->can_read(1);
|
my @ready = $select->can_read(1);
|
||||||
next if !@ready;
|
next if !@ready;
|
||||||
my $server = shift @ready;
|
while (my $server = shift @ready) {
|
||||||
|
|
||||||
my ($client, $hisaddr) = $server->accept;
|
my ($client, $hisaddr) = $server->accept;
|
||||||
|
|
||||||
if (!$hisaddr) {
|
if (!$hisaddr) {
|
||||||
@ -235,6 +234,7 @@ while (1) {
|
|||||||
|
|
||||||
exit; # child leaves
|
exit; # child leaves
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sub log {
|
sub log {
|
||||||
my ($level,$message) = @_;
|
my ($level,$message) = @_;
|
||||||
|
Loading…
Reference in New Issue
Block a user