From fc5d9a413d18be44973fd92292a57fd0c38fca5d Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Thu, 20 Oct 2011 13:49:16 +0100 Subject: [PATCH] Fixes #1380. Fixes #1383. Avoid "popen error (pipe): Too many open files" error when building Cappuccino. --- narwhal.local.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/narwhal.local.conf b/narwhal.local.conf index 9fe4e691b..235176eab 100644 --- a/narwhal.local.conf +++ b/narwhal.local.conf @@ -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