From 8bc048876455647333e3af91a241a4103b40d0e1 Mon Sep 17 00:00:00 2001 From: zhaoertao Date: Thu, 21 Nov 2013 00:51:00 -0800 Subject: [PATCH] fix bug 3889 xcatd not running preprocess for multiple plugins when mgt=ipmi --- xCAT-server/sbin/xcatd | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index d95060fdc..88a88f517 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -1439,6 +1439,7 @@ sub plugin_command { } $parent_fd = $old_parent_fd; } else { + my $req_back = undef; # executing plugins parallel foreach (keys %handler_hash) { my $modname = $_; @@ -1464,6 +1465,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) {