2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 17:46:38 +00:00

fix bug#155 There are errors when restart xcatd for UDP service's bug

This commit is contained in:
huweihua 2015-10-15 03:45:30 -04:00
parent 4bbde50119
commit e6c157b95b

View File

@ -728,7 +728,8 @@ sub do_udp_service { #This function opens up a UDP port
$part = $socket->recv($data,2000);
$packets{$part} = [$part,$data];
} elsif ($hdl == $sslctl) {
update_udpcontext_from_sslctl(udpcontext=>$udpcontext,select=>$select);
next;
#update_udpcontext_from_sslctl(udpcontext=>$udpcontext,select=>$select);
} elsif ($hdl == $discoctl) { #got a discovery response....
} else {
print "Something is wrong in udp process (search xcatd for this string)\n";
@ -948,7 +949,7 @@ $SIG{TERM} = $SIG{INT} = sub {
kill 2, $_;
}
if ($pid_UDP) {
kill 2, $pid_UDP;
kill 12, $pid_UDP;
}
if ($pid_MON) {
kill 2, $pid_MON;