Ignore unsupported ulimit -x errors

On Mac OS X (aka Darwin) and some versions of Linux, /bin/sh does
not support ulimit -x.  Ignore any errors trying to adjust that
particular resource usage limit.

Change-Id: Ib419c53e23ec904e1215b0541ba0f5bb9e029791
Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce
2009-12-11 17:12:18 -08:00
parent 0461d294cd
commit 53f5e992b4

View File

@@ -292,7 +292,8 @@ ulimit -m unlimited ; # max memory size
ulimit -n $GERRIT_FDS ; # open files
ulimit -t unlimited ; # cpu time
ulimit -t unlimited ; # virtual memory
ulimit -x unlimited ; # file locks
ulimit -x unlimited 2>/dev/null ; # file locks
#####################################################
# This is how the Gerrit server will be started