Permalink
Browse files

Fixes #1380. Fixes #1383. Avoid "popen error (pipe): Too many open fi…

…les" error when building Cappuccino.
  • Loading branch information...
1 parent 2f57404 commit fc5d9a413d18be44973fd92292a57fd0c38fca5d @aljungberg aljungberg committed Oct 20, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 narwhal.local.conf
View
@@ -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

0 comments on commit fc5d9a4

Please sign in to comment.