lib/childprocess/jruby/process.rb in childprocess-0.2.4 vs lib/childprocess/jruby/process.rb in childprocess-0.2.5

- old
+ new

@@ -78,12 +78,12 @@ setup_io end def setup_io if @io - @pumps << redirect(@process.getErrorStream, @io.stderr) - @pumps << redirect(@process.getInputStream, @io.stdout) + redirect(@process.getErrorStream, @io.stderr) + redirect(@process.getInputStream, @io.stdout) else @process.getErrorStream.close @process.getInputStream.close end @@ -101,10 +101,10 @@ if output.nil? input.close return end - Pump.new(input, output.to_outputstream).run + @pumps << Pump.new(input, output.to_outputstream).run end def stop_pumps @pumps.each { |pump| pump.stop } end