From 55849333c5d57464e2d709ae66c7985873491ca7 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 5 Aug 2011 20:04:48 +0000 Subject: Removing SIGKILL if ssh does not terminate --- loadbars.pl | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/loadbars.pl b/loadbars.pl index 78c8827..66bb549 100755 --- a/loadbars.pl +++ b/loadbars.pl @@ -146,25 +146,11 @@ BASH }; $SIG{STOP} = sub { - print "Shutting down get_stat($host) & PID $pid"; + say "Shutting down get_stat($host) & PID $pid"; kill 1, $pid; close $pipe; $sigstop = 1; - - my $killcounter = 0; - while (kill 0, $pid) { - ++$killcounter; - print '.'; - - if ($killcounter >= 3) { - print " forcing using SIGKILL"; - kill 0, $pid; - last; - } - } - - newline; }; # Toggle CPUs -- cgit v1.2.3