summaryrefslogtreecommitdiff
path: root/net/rabbitmq/files
diff options
context:
space:
mode:
Diffstat (limited to 'net/rabbitmq/files')
-rw-r--r--net/rabbitmq/files/patch-src_rabbit__misc.erl22
1 files changed, 22 insertions, 0 deletions
diff --git a/net/rabbitmq/files/patch-src_rabbit__misc.erl b/net/rabbitmq/files/patch-src_rabbit__misc.erl
new file mode 100644
index 000000000000..8d22f46b7e1d
--- /dev/null
+++ b/net/rabbitmq/files/patch-src_rabbit__misc.erl
@@ -0,0 +1,22 @@
+--- src/rabbit_misc.erl.orig 2015-12-15 10:23:52 UTC
++++ src/rabbit_misc.erl
+@@ -652,18 +652,7 @@ format_many(List) ->
+ lists:flatten([io_lib:format(F ++ "~n", A) || {F, A} <- List]).
+
+ format_stderr(Fmt, Args) ->
+- case os:type() of
+- {unix, _} ->
+- Port = open_port({fd, 0, 2}, [out]),
+- port_command(Port, io_lib:format(Fmt, Args)),
+- port_close(Port);
+- {win32, _} ->
+- %% stderr on Windows is buffered and I can't figure out a
+- %% way to trigger a fflush(stderr) in Erlang. So rather
+- %% than risk losing output we write to stdout instead,
+- %% which appears to be unbuffered.
+- io:format(Fmt, Args)
+- end,
++ io:format(standard_error, Fmt, Args),
+ ok.
+
+ unfold(Fun, Init) ->