Flush stdin after writing file to ShrinkSafe process (fixes building in Rhino)

This commit is contained in:
Tom Robinson committed 2009-11-17 17:02:07 -08:00
1 parent 2466c14300
commit 31feec0465
1 file changed
+1
@@ -43,6 +43,7 @@ function compress(/*String*/ aCode, /*String*/ FIXME)
chunk = "";
compressor.stdin.write(tmpFile + "\n");
compressor.stdin.flush();
while ((chunk = compressor.stdout.readLine()) !== "/*----*/\n")
output += chunk;