fixed bug 3248

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14657 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2012-12-14 09:35:18 +00:00
parent 289d0d36c8
commit 5361716349

View File

@ -227,13 +227,14 @@ no strict;
$| = 1;
select(STDERR);
$| = 1;
my $command0 = $commands[0];
my @exe_command0_process = xCAT::DSHCore->fork_no_output($fork_id, @$command0);
waitpid($exe_command0_process[0], undef);
my $t_command = $commands[1];
my @command = @$t_command;
if ( @commands > 1 ) {
my $command0 = shift(@commands);
my @exe_command0_process = xCAT::DSHCore->fork_no_output($fork_id, @$command0);
waitpid($exe_command0_process[0], undef);
}
my $t_command = shift(@commands);
my @command = @$t_command;
if (!(exec {$command[0]} @command))
{
return (-4, undef);