fix bug 3889 xcatd not running preprocess for multiple plugins when mgt=ipmi

This commit is contained in:
zhaoertao 2013-11-21 00:51:00 -08:00
parent 2ade33338a
commit b5409af7ee

View File

@ -1384,6 +1384,7 @@ sub plugin_command {
}
$parent_fd = $old_parent_fd;
} else {
my $req_back = undef;
# executing plugins parallel
foreach (keys %handler_hash) {
my $modname = $_;
@ -1409,6 +1410,11 @@ sub plugin_command {
binmode($pfd,':utf8');
$child = xCAT::Utils->xfork;
} else {
if ($req_back) {
$req = dclone($req_back);
} else {
$req_back = dclone($req);
}
$child = 0;
}
unless (defined $child) {