Fix problem where Ctrl-C didn't work with new payload format

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16781 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2013-06-26 20:42:39 +00:00
parent 265308065c
commit fc16c672ba

View File

@ -263,7 +263,7 @@ if (ref($request) eq 'HASH') { # the request is an array, not pure XML
$msg=$request;
print $client $msg;
}
$SIG{TERM} = $SIG{INT} = sub { send_request({abortcommand=>1},$client,$encode); exit 0; };
$SIG{TERM} = $SIG{INT} = sub { send_request({abortcommand=>[1]},$client,$encode); exit 0; };
my $response;
my $rsp;
my $cleanexit=0;