defect 4336,4352: in xcatd, for aix, make all the process (fix for udp process) to be stopped when received TERM singal from stopsrc command to the main process

This commit is contained in:
daniceexi 2014-11-19 07:44:17 -05:00
parent 449ee0f808
commit 3a4cefe53b

View File

@ -977,6 +977,15 @@ unless ($pid_UDP) {
xexit(0);
}
close($udpbroker);
$SIG{TERM} = $SIG{INT} = sub {
if ($pid_disco) {
kill 2, $pid_disco;
}
$SIG{ALRM} = sub { xexit 0; }; #die "Did not close out in time for 2 second grace period"; };
alarm(2);
};
do_udp_service(discoctl=>$discoctl,discopid=>$pid_disco);
xexit(0);
}