mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-06 17:12:50 +00:00
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:
1 parent
e30d54723d
commit
450081ee3e
1 file changed
+6
-1
+6
-1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user