Skip to content

Commit e0c3a6b

Browse files
committed
Buffer the stderr/stdout
1 parent c450d24 commit e0c3a6b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/pyspark/java_gateway.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def preexec_func():
9898
if grab_jvm_output:
9999
proc_kwargs["stderr"] = PIPE
100100
proc_kwargs["stdout"] = PIPE
101+
proc_kwargs["bufsize"] = 1
101102

102103
proc = Popen(command, **proc_kwargs)
103104

0 commit comments

Comments
 (0)