Commit fd9770ef authored by Samuel E. Giddins's avatar Samuel E. Giddins

[Executable] Run reader threads instead of joining them

This is fine since we only want to read until the process weve spawned has exited
parent 62550d8a
......@@ -68,7 +68,7 @@ module Pod
out_reader = Thread.new { while s = o.gets; stdout << s; end }
err_reader = Thread.new { while s = e.gets; stderr << s; end }
i.close
[out_reader, err_reader].each(&:join)
[out_reader, err_reader].each(&:run)
t.value
end
output = stdout.join("\n") + stderr.join("\n")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment