diff options
| author | Paul Buetow <paul@buetow.org> | 2011-01-17 22:09:13 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2011-01-17 22:09:13 +0000 |
| commit | 5354a0535912cfdcc0571107372a8459b752f58a (patch) | |
| tree | 3dcbaae99643c84c48e15cd4c58578b9892b334b /loadbars.pl | |
| parent | 21f71970697f0cb792116ebbcd4ff6b8a275018d (diff) | |
added retry if ssh pipe is broken
Diffstat (limited to 'loadbars.pl')
| -rwxr-xr-x | loadbars.pl | 3 |
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 { |
