Skip to content

Commit 0bb2a8a

Browse files
committed
Implement stderr=STDOUT in subprocess
1 parent 4f7f717 commit 0bb2a8a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/PosixSubprocessModuleBuiltins.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ private synchronized int forkExec(PList args, @SuppressWarnings("unused") PList
175175
pb.redirectError(Redirect.INHERIT);
176176
}
177177

178+
if (errwrite == c2pwrite) {
179+
pb.redirectErrorStream(true);
180+
}
181+
178182
try {
179183
if (getContext().getEnv().getPublicTruffleFile(cwd).exists()) {
180184
pb.directory(new File(cwd));

0 commit comments

Comments
 (0)