diff --git a/lib/aruba/processes/spawn_process.rb b/lib/aruba/processes/spawn_process.rb index ae905717a..c92a50057 100644 --- a/lib/aruba/processes/spawn_process.rb +++ b/lib/aruba/processes/spawn_process.rb @@ -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