spec/spec_helper.rb in logstash-input-unix-2.0.1 vs spec/spec_helper.rb in logstash-input-unix-2.0.2

- old
+ new

@@ -17,11 +17,15 @@ self end def loop(forever=false) @thread = Thread.new do - s = @socket.accept - s.puts "hi" while forever + begin + s = @socket.accept + s.puts "hi" while forever + rescue Errno::EPIPE + # ... + end end self end def close