From fff5c05c8ab0c1578222f766a121d6799171ee7f Mon Sep 17 00:00:00 2001 From: hu-weihua Date: Fri, 29 Jul 2016 05:42:52 -0400 Subject: [PATCH] modify signal handler part depending on gongjie's comment --- xCAT-server/share/xcat/tools/jenkins/xcatjktest | 6 ------ 1 file changed, 6 deletions(-) diff --git a/xCAT-server/share/xcat/tools/jenkins/xcatjktest b/xCAT-server/share/xcat/tools/jenkins/xcatjktest index 1ab31417e..9c6d9da69 100755 --- a/xCAT-server/share/xcat/tools/jenkins/xcatjktest +++ b/xCAT-server/share/xcat/tools/jenkins/xcatjktest @@ -1221,25 +1221,19 @@ $SIG{TERM} = $SIG{INT} = sub { #try INT up to 4 times if need if($try < 5){ kill 'INT', $pid; - send_msg(2, "send INT to subprocess $pid...[$try]"); #try TERM up to 4 times if need }elsif($try < 9){ kill 'TERM', $pid; - send_msg(2, "send TERM to subprocess $pid...[$try]"); #force to kill finally }elsif($try < 100){ kill 'KILL', $pid; - send_msg(2, "send KILL to subprocess $pid...[$try]"); }else{ - send_msg(2, "Can't stop pid $pid"); last; } - sleep 1; } } &cleanup; - send_msg(2, "receive TERM or INT signal to exit"); exit 0; };