-Have blade plugin die a little more gracefully in a hypothetical failure in SNMP processing, still needs to be more specific
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2685 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
4c62b372aa
commit
b9f440262f
@ -2190,8 +2190,12 @@ sub process_request {
|
||||
unless (defined($cpid)) { die "Fork error"; }
|
||||
unless ($cpid) {
|
||||
close($cfd);
|
||||
dompa($pfd,$mpa,\%mpahash,$command,-args=>\@exargs);
|
||||
exit(0);
|
||||
eval {
|
||||
dompa($pfd,$mpa,\%mpahash,$command,-args=>\@exargs);
|
||||
exit(0);
|
||||
};
|
||||
if ($@) { die "$@"; }
|
||||
die "blade plugin encountered a general error while communication with $mpa";
|
||||
}
|
||||
$mm_comm_pids{$cpid} = 1;
|
||||
close ($pfd);
|
||||
|
Loading…
Reference in New Issue
Block a user