lib/dumper/job.rb in dumper-1.1.1 vs lib/dumper/job.rb in dumper-1.1.2

- old
+ new

@@ -42,9 +42,11 @@ log "command = #{@database.command}" begin pid, stdin, stdout, stderr = popen4(@database.command) stdin.close + (out = stdout.read).empty? or log out, :debug + (err = stderr.read).empty? or log err, :error rescue Process.kill(:INT, pid) rescue SystemCallError abort_with("dump error: #{$!}", :dump_error) ensure [stdin, stdout, stderr].each{|io| io.close unless io.closed? }