summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--native_client_sdk/src/libraries/ppapi_main/ppapi_instance.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/native_client_sdk/src/libraries/ppapi_main/ppapi_instance.cc b/native_client_sdk/src/libraries/ppapi_main/ppapi_instance.cc
index 64e3d16..3a2450b 100644
--- a/native_client_sdk/src/libraries/ppapi_main/ppapi_instance.cc
+++ b/native_client_sdk/src/libraries/ppapi_main/ppapi_instance.cc
@@ -161,6 +161,8 @@ bool PPAPIInstance::ProcessProperties() {
int fd0 = open(stdin_path, O_RDONLY);
int fd1 = open(stdout_path, O_WRONLY);
int fd2 = open(stderr_path, O_WRONLY);
+ setvbuf(stderr, NULL, _IOLBF, 0);
+ setvbuf(stdout, NULL, _IOLBF, 0);
return (fd0 == 0) && (fd1 == 1) && (fd2 == 2);
}