Index: native_client_sdk/src/examples/hello_world_stdio/hello_world.c |
diff --git a/native_client_sdk/src/examples/hello_world_stdio/hello_world.c b/native_client_sdk/src/examples/hello_world_stdio/hello_world.c |
index 0d2faf14b5de91858d687f128bf742e387c2628d..a4a59f3fa8b48273ca8ea794bf2d107b3f50871e 100644 |
--- a/native_client_sdk/src/examples/hello_world_stdio/hello_world.c |
+++ b/native_client_sdk/src/examples/hello_world_stdio/hello_world.c |
@@ -35,6 +35,7 @@ int ppapi_main(int argc, const char *argv[]) { |
// Use PostMessage to send "Hello World" to JavaScript. |
printf("Hello World STDIO.\n"); |
+ fflush(stdout); |
// Use PPAPI Console interface to send "Hello World" to the |
// JavaScript Console. |
@@ -46,5 +47,6 @@ int ppapi_main(int argc, const char *argv[]) { |
printf(" ARGS: %s=%s\n", argv[index+0], argv[index+1]); |
index += 2; |
} |
+ fflush(stdout); |
return 0; |
} |