Commit 14641bd5 authored by Boris Bügling's avatar Boris Bügling

Flush stdin/stderr and wait a bit in `executable`.

This should make it unlikely that we don't catch the full output of
commands we are executing.
parent 2e117f9f
...@@ -83,7 +83,13 @@ module Pod ...@@ -83,7 +83,13 @@ module Pod
Thread.new { while s = o.gets; stdout << s; end } Thread.new { while s = o.gets; stdout << s; end }
Thread.new { while s = e.gets; stderr << s; end } Thread.new { while s = e.gets; stderr << s; end }
i.close i.close
t.value status = t.value
o.flush
e.flush
sleep(0.01)
status
end end
end end
......
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