mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-21 13:35:32 +00:00
Fix issue 5518: perl-xCAT/xCAT/MacMap.pm on ubuntu18.4 and rhels6.10
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user