From fce50f399366171cb3b50b104de797b17efc73c8 Mon Sep 17 00:00:00 2001 From: Joe DeVivo Date: Tue, 4 Dec 2012 09:18:59 -0700 Subject: [PATCH] stderr_to_stdout boyeeeee --- src/rt.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rt.erl b/src/rt.erl index c86589ce..19ab185f 100644 --- a/src/rt.erl +++ b/src/rt.erl @@ -348,13 +348,13 @@ cmd(Cmd, Opts) -> %% once per second, as to not create the impression that nothing is happening. -spec stream_cmd(string()) -> {integer(), string()}. stream_cmd(Cmd) -> - Port = open_port({spawn, binary_to_list(iolist_to_binary(Cmd))}, [stream, exit_status]), + Port = open_port({spawn, binary_to_list(iolist_to_binary(Cmd))}, [stream, stderr_to_stdout, exit_status]), stream_cmd_loop(Port, "", "", now()). %% @doc same as rt:stream_cmd/1, but with options, like open_port/2 -spec stream_cmd(string(), string()) -> {integer(), string()}. stream_cmd(Cmd, Opts) -> - Port = open_port({spawn, binary_to_list(iolist_to_binary(Cmd))}, [stream, exit_status] ++ Opts), + Port = open_port({spawn, binary_to_list(iolist_to_binary(Cmd))}, [stream, stderr_to_stdout, exit_status] ++ Opts), stream_cmd_loop(Port, "", "", now()). stream_cmd_loop(Port, Buffer, NewLineBuffer, Time={_MegaSecs, Secs, _MicroSecs}) ->