lib/hookit/resource/execute.rb in hookit-0.12.2 vs lib/hookit/resource/execute.rb in hookit-0.12.3

- old
+ new

@@ -81,11 +81,11 @@ until stdout_eof and stderr_eof do (ready_pipes, dummy, dummy) = IO.select([stdout, stderr]) ready_pipes.each_with_index do |socket| if socket == stdout begin - chunk = socket.readpartial(1) + chunk = socket.readpartial(4096) if on_data and on_data.respond_to? :call on_data.call(chunk) end if on_stdout and on_stdout.respond_to? :call on_stdout.call(chunk) @@ -94,10 +94,10 @@ stdout_eof = true end result << chunk.to_s elsif socket == stderr begin - chunk = socket.readpartial(1) + chunk = socket.readpartial(4096) if on_data and on_data.respond_to? :call on_data.call(chunk) end if on_stderr and on_stderr.respond_to? :call on_stderr.call(chunk)