File 3053-peer-Include-stderr-into-the-output-of-standard_io-c.patch of Package erlang

From 60796e0ce1ae779e78571ad4ad8baf8653df3dbe Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Tue, 3 May 2022 15:31:44 +0200
Subject: [PATCH 3/4] peer: Include stderr into the output of standard_io
 connections

---
 lib/stdlib/src/peer.erl | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/lib/stdlib/src/peer.erl b/lib/stdlib/src/peer.erl
index 1d244b0677..2bd6fc9fca 100644
--- a/lib/stdlib/src/peer.erl
+++ b/lib/stdlib/src/peer.erl
@@ -302,9 +302,12 @@ init([Notify, Options]) ->
         case maps:find(connection, Options)  of
             {ok, standard_io} ->
                 %% Cannot detach a peer that uses stdio. Request exit_status.
-                open_port({spawn_executable, Exec}, [{args, FinalArgs}, {env, Env}, hide, binary, exit_status]);
+                open_port({spawn_executable, Exec},
+                          [{args, FinalArgs}, {env, Env}, hide,
+                           binary, exit_status, stderr_to_stdout]);
             _ ->
-                Port = open_port({spawn_executable, Exec}, [{args, FinalArgs}, {env, Env}, hide, binary]),
+                Port = open_port({spawn_executable, Exec},
+                                 [{args, FinalArgs}, {env, Env}, hide, binary]),
                 %% peer can close the port before we get here which will cause
                 %%  port_close to throw. Catch this and ignore.
                 catch erlang:port_close(Port),
-- 
2.35.3

openSUSE Build Service is sponsored by