Fixed: 'cannot run program "ulimit"' error.

When running on certain platforms the `ulimit` command is not available, which would crash the build script.

This change simply refrains from using the `ulimit` command if it's not available.
This commit is contained in:
Alexander Ljungberg committed 2013-01-30 11:38:39 +00:00
1 parent e30d54723d
commit 450081ee3e
1 file changed
+6 -1
+6 -1
View File
@@ -544,7 +544,12 @@ var minUlimit = 1024;
global.checkUlimit = function()
{
var p = OS.popen(["ulimit", "-n"]);
var ulimitPath = executableExists("ulimit");
if (!ulimitPath)
return;
var p = OS.popen([ulimitPath, "-n"]);
if (p.wait() === 0)
{