2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-23 19:50:21 +00:00

Merge pull request #5519 from zet809/fix_issue_5518

Fix issue 5518: perl-xCAT/xCAT/MacMap.pm on ubuntu18.4 and rhels6.10
This commit is contained in:
xuweibj
2018-08-16 15:33:27 +08:00
committed by GitHub

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);
}