lib/tty/command/process_runner.rb in tty-command-0.8.1 vs lib/tty/command/process_runner.rb in tty-command-0.8.2
- old
+ new
@@ -155,9 +155,12 @@
]
end
def read_stream(stream, buffer)
Thread.new do
+ if Thread.current.respond_to?(:report_on_exception)
+ Thread.current.report_on_exception = false
+ end
Thread.current[:cmd_start] = Time.now
readers = [stream]
while readers.any?
ready = IO.select(readers, nil, readers, @timeout)