Index: main/src/bin/run.sh =================================================================== --- main/src/bin/run.sh (revision 69565) +++ main/src/bin/run.sh (working copy) @@ -88,7 +88,15 @@ ulimit -n $MAX_FD if [ $? -ne 0 ]; then - warn "Could not set maximum file descriptor limit: $MAX_FD" + if [ "$darwin" = "true" ]; then + MAX_FD=`sysctl kern.maxfilesperproc | awk ' { print $3 }` + ulimit -n $MAX_FD + if [ $? -ne 0 ]; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi fi else warn "Could not query system maximum file descriptor limit: $MAX_FD_LIMIT"