Skip to content

Commit

Permalink
Ignore certain errors when reading remote's output
Browse files Browse the repository at this point in the history
  • Loading branch information
mpalmer committed Oct 12, 2014
1 parent dba794a commit cd0def8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/lvmsync
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,11 @@ def run_client(opts)
more_to_read = false
(IO.select([stdout_fd, stderr_fd], [], [], 0) || [[]])[0].each do |fd|
more_to_read = true
$stderr.puts "\e[2K\rremote:#{fd.readline}"
begin
$stderr.puts "\e[2K\rremote:#{fd.readline}"
rescue EOFError, Errno::EPIPE
# lolwhateva
end
end
end
end
Expand Down

0 comments on commit cd0def8

Please sign in to comment.