process: Do not mix stderr with stdout

Message ID 20211208165736.194174-1-amikan@ilbers.de
State Accepted, archived
Commit 1ecc1d9424877df89fcda2f23c306998998a65ff
Headers show
Series process: Do not mix stderr with stdout | expand

Commit Message

Anton Mikanovich Dec. 8, 2021, 4:57 p.m. UTC
We should not redirect stderr to stdout if we need to get separated
stdout and stderr contents from Popen.communicate() later.

Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
 lib/bb/process.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/lib/bb/process.py b/lib/bb/process.py
index d5a1775f..af5d804a 100644
--- a/lib/bb/process.py
+++ b/lib/bb/process.py
@@ -60,7 +60,7 @@  class Popen(subprocess.Popen):
         "close_fds": True,
         "preexec_fn": subprocess_setup,
         "stdout": subprocess.PIPE,
-        "stderr": subprocess.STDOUT,
+        "stderr": subprocess.PIPE,
         "stdin": subprocess.PIPE,
         "shell": False,
     }