summaryrefslogtreecommitdiff
path: root/loadbars.pl
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2011-08-05 20:04:48 +0000
committerPaul Buetow <paul@buetow.org>2011-08-05 20:04:48 +0000
commit55849333c5d57464e2d709ae66c7985873491ca7 (patch)
treef571146d4146d2d7b8d9d3050cf79a7e2d9c857c /loadbars.pl
parented059786078ec9a1953125275151dfe57a8ea903 (diff)
Removing SIGKILL if ssh does not terminate
Diffstat (limited to 'loadbars.pl')
-rwxr-xr-xloadbars.pl16
1 files changed, 1 insertions, 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