2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-21 05:25:32 +00:00

Fix issue 5518: perl-xCAT/xCAT/MacMap.pm on ubuntu18.4 and rhels6.10

This commit is contained in:
ertaozh
2018-08-16 01:49:53 -04:00
parent ed890e6e23
commit a0e369430d

View File

@ -533,7 +533,7 @@ sub refresh_table {
my $children = 0;
my $inputs = new IO::Select;
$SIG{CHLD} = sub { while (waitpid(-1, WNOHANG) > 0) { $children-- } };
foreach my $entry (keys $self->{switches}) {
foreach my $entry (keys %{$self->{switches}}) {
while ($children > 64) {
$self->handle_output($inputs);
}