Fix a mistake that rspconfig --resetnet should not fork in PPC.pm

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9727 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
yinle 2011-06-02 02:15:23 +00:00
parent dfe91b09a9
commit 1101915a1b

View File

@ -450,6 +450,8 @@ sub process_command {
$nodes = $remain_node;
}
} elsif ( $request->{command} =~ /^rspconfig$/&& exists( $request->{opt}->{resetnet} ) ) {
runcmd( $request );
} else {
$SIG{CHLD} = sub { while (waitpid(-1, WNOHANG) > 0) { $children--; } };
my $hw;