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:
parent
449ee0f808
commit
3a4cefe53b
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user