FIXED: Closes all streams after a OS.popen()

Previously, when popen was called, the 3 streams (stdin, stderr and stdourt) where never closed. This was the reason of the having an impossible number of open files.

This patch ensure all streams are closed after using them. This means that the ulimit trick is no more necessary
This commit is contained in:
Antoine Mercadal
2015-04-23 16:46:01 -07:00
parent c13f1991c9
commit bcb1630f20
13 changed files with 88 additions and 71 deletions
+4 -1
View File
@@ -25,11 +25,14 @@ task ("build", function()
if (majorVersion < 10 || minorVersion < 7)
{
colorPrint("XcodeCapp can only be built on Mac OS X 10.7+. You can download the binary here: https://www.dropbox.com/sh/gxdgm356gyb9tqc/rFNyl8hcVG", "red");
OS.exit(0);
}
}
p.stdin.close();
p.stdout.close();
p.stderr.close();
if (executableExists("xcodebuild"))
{
var args = "-sdk macosx -alltargets -configuration Release",