From ab6f939e62581adfa08017246e0482444510caa5 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Sat, 15 Jun 2013 10:45:29 +0000 Subject: [PATCH] defect 3619: backup the req before dispatch to a xCAT module and recover it after the dispatch git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16638 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Client.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/Client.pm b/perl-xCAT/xCAT/Client.pm index dbc4fc02b..9a1edb046 100644 --- a/perl-xCAT/xCAT/Client.pm +++ b/perl-xCAT/xCAT/Client.pm @@ -657,7 +657,10 @@ sub plugin_command { no strict "refs"; # eval { #REMOVEEVALFORDEBUG # if ($dispatch_requests) { - dispatch_request($req,$callback,$modname); + # backup the original req and recover it after the a run + my $org_req = {%$req}; + dispatch_request($req,$callback,$modname); + $req = {%$org_req}; # } else { # $SIG{CHLD}='DEFAULT'; # ${"xCAT_plugin::".$modname."::"}{process_request}->($req,$callback,\&do_request);