Skip to content

Commit

Permalink
Sync IO to make sure everything is written to disk at once
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmeyer committed Aug 19, 2015
1 parent a1e1708 commit 85d74fc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/aruba/processes/spawn_process.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,12 @@ def start
cmd = Aruba.platform.command_string.new(cmd)

@process = ChildProcess.build(*[cmd.to_a, arguments].flatten)
@stdout_file = Tempfile.new("aruba-stdout")
@stderr_file = Tempfile.new("aruba-stderr")
@stdout_file = Tempfile.new("aruba-stdout-")
@stderr_file = Tempfile.new("aruba-stderr-")

@stdout_file.sync = true
@stderr_file.sync = true

@exit_status = nil
@duplex = true

Expand Down

0 comments on commit 85d74fc

Please sign in to comment.