Bug 683400 - SandboxDump should flush stderr after writing output. r=mrbkap
authorMark Hammond <mhammond@skippinet.com.au>
Wed, 21 Sep 2011 20:56:20 +0200
changeset 78602 891362a930b0d97cf77db69dd0d4ebbc8657425e
parent 78601 cec49ea0739d802649fa819ff7ccc1c74f37fc9a
child 78603 69d457d5d3298388475b9a0902fbc53e879102de
push id78
push userclegnitto@mozilla.com
push dateFri, 16 Dec 2011 17:32:24 +0000
treeherdermozilla-release@79d24e644fdd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmrbkap
bugs683400
milestone9.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 683400 - SandboxDump should flush stderr after writing output. r=mrbkap
js/src/xpconnect/src/xpccomponents.cpp
--- a/js/src/xpconnect/src/xpccomponents.cpp
+++ b/js/src/xpconnect/src/xpccomponents.cpp
@@ -2994,16 +2994,17 @@ SandboxDump(JSContext *cx, uintN argc, j
     while (c < cEnd) {
         if (*c == '\r')
             *c = '\n';
         c++;
     }
 #endif
 
     fputs(cstr, stderr);
+    fflush(stderr);
     NS_Free(cstr);
     JS_SET_RVAL(cx, vp, JSVAL_TRUE);
     return JS_TRUE;
 }
 
 static JSBool
 SandboxDebug(JSContext *cx, uintN argc, jsval *vp)
 {