summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2011-01-17 22:09:13 +0000
committerPaul Buetow <paul@buetow.org>2011-01-17 22:09:13 +0000
commit5354a0535912cfdcc0571107372a8459b752f58a (patch)
tree3dcbaae99643c84c48e15cd4c58578b9892b334b
parent21f71970697f0cb792116ebbcd4ff6b8a275018d (diff)
added retry if ssh pipe is broken
-rwxr-xr-xloadbars.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/loadbars.pl b/loadbars.pl
index 59f77ab..d4183a1 100755
--- a/loadbars.pl
+++ b/loadbars.pl
@@ -138,7 +138,8 @@ BASH
my $pid = open my $pipe, "$cmd |" or do {
say "Warning: $!";
- return;
+ sleep 3;
+ next;
};
$SIG{STOP} = sub {