From e6c157b95bdde9ea4a81b259d5a1cedd33e5166e Mon Sep 17 00:00:00 2001 From: huweihua Date: Thu, 15 Oct 2015 03:45:30 -0400 Subject: [PATCH] fix bug#155 There are errors when restart xcatd for UDP service's bug --- xCAT-server/sbin/xcatd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index 951fe5c04..a92c21963 100644 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -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;