summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2011-08-05 20:03:58 +0000
committerPaul Buetow <paul@buetow.org>2011-08-05 20:03:58 +0000
commited059786078ec9a1953125275151dfe57a8ea903 (patch)
tree80717238305795dadc0b05d7660d3cbdf87d87d4
parent0d99786d145574323ee8559b2f5ee49dcc4a23ce (diff)
Adding SIGKILL if ssh does not terminate
-rwxr-xr-xloadbars.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/loadbars.pl b/loadbars.pl
index 3df9fcf..78c8827 100755
--- a/loadbars.pl
+++ b/loadbars.pl
@@ -160,6 +160,7 @@ BASH
if ($killcounter >= 3) {
print " forcing using SIGKILL";
kill 0, $pid;
+ last;
}
}