Fixes #1380. Fixes #1383. Avoid "popen error (pipe): Too many open files" error when building Cappuccino.

This commit is contained in:
Alexander Ljungberg
2011-10-20 13:49:16 +01:00
parent 2f57404c9c
commit fc5d9a413d
+6
View File
@@ -1,3 +1,9 @@
if [ -z "$NARWHAL_ENGINE" ] && [ -d "$NARWHAL_HOME/packages/narwhal-jsc" ]; then
export NARWHAL_ENGINE=jsc
fi
if [ "$NARWHAL_ENGINE" == jsc ] && [ `ulimit -n` -lt 512 ]; then
# JSC and Narwhal together have some trouble closing files, leading to the Cappuccino
# build process crashing with a "popen error (pipe): Too many open files" error.
ulimit -n 512
fi