We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be93422 commit 70d6e7fCopy full SHA for 70d6e7f
xCAT-server/lib/xcat/plugins/openbmc.pm
@@ -1088,8 +1088,10 @@ rmdir \"/tmp/\$userid\" \n";
1088
}
1089
1090
if (%child_node_map) {
1091
+ my $pid_flag = 0;
1092
while ((my $cpid = waitpid(-1, WNOHANG)) > 0) {
1093
if ($child_node_map{$cpid}) {
1094
+ $pid_flag = 1;
1095
my $node = $child_node_map{$cpid};
1096
my $rc = $? >> 8;
1097
if ($rc != 0) {
@@ -1107,6 +1109,9 @@ rmdir \"/tmp/\$userid\" \n";
1107
1109
delete $child_node_map{$cpid};
1108
1110
1111
1112
+ unless ($pid_flag) {
1113
+ select(undef, undef, undef, 0.01);
1114
+ }
1115
1116
my @del;
1117
while (my ($k, $v) = each %node_wait) {
0 commit comments