From 31feec0465f91a9bdf7907f543fe0a6c32c9ef22 Mon Sep 17 00:00:00 2001 From: Tom Robinson Date: Tue, 17 Nov 2009 17:02:07 -0800 Subject: [PATCH] Flush stdin after writing file to ShrinkSafe process (fixes building in Rhino) --- Objective-J/CommonJS/lib/objective-j/compiler.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Objective-J/CommonJS/lib/objective-j/compiler.js b/Objective-J/CommonJS/lib/objective-j/compiler.js index f5465e1a5..ccc5f675e 100644 --- a/Objective-J/CommonJS/lib/objective-j/compiler.js +++ b/Objective-J/CommonJS/lib/objective-j/compiler.js @@ -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;