moved the closing of subprocess streams to after the process has finished.
This commit is contained in:
parent
3ea04f2577
commit
36f43fa676
|
@ -64,10 +64,6 @@ module Vagrant
|
||||||
# Make sure the stdin does not buffer
|
# Make sure the stdin does not buffer
|
||||||
process.io.stdin.sync = true
|
process.io.stdin.sync = true
|
||||||
|
|
||||||
# Close the writer pipes, since we're just reading
|
|
||||||
stdout_writer.close
|
|
||||||
stderr_writer.close
|
|
||||||
|
|
||||||
# Create a dictionary to store all the output we see.
|
# Create a dictionary to store all the output we see.
|
||||||
io_data = { :stdout => "", :stderr => "" }
|
io_data = { :stdout => "", :stderr => "" }
|
||||||
|
|
||||||
|
@ -121,6 +117,10 @@ module Vagrant
|
||||||
raise TimeoutExceeded, process.pid
|
raise TimeoutExceeded, process.pid
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Close the writer pipes, since we're just reading
|
||||||
|
stdout_writer.close
|
||||||
|
stderr_writer.close
|
||||||
|
|
||||||
@logger.debug("Exit status: #{process.exit_code}")
|
@logger.debug("Exit status: #{process.exit_code}")
|
||||||
|
|
||||||
# Read the final output data, since it is possible we missed a small
|
# Read the final output data, since it is possible we missed a small
|
||||||
|
|
Loading…
Reference in New Issue