run.bash: raise ulimit for the number of threads.

This is needed on NetBSD-current. Support for
ulimit -T in bash was added in 4.2nb3.

R=golang-dev, minux.ma, rsc, dave
CC=golang-dev
https://golang.org/cl/10078047
This commit is contained in:
Benny Siegert 2013-06-17 19:31:58 +10:00 committed by Dave Cheney
parent 94dc963b55
commit 8a4efed63c
1 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,11 @@ ulimit -c 0
[ "$(ulimit -H -n)" == "unlimited" ] || ulimit -S -n $(ulimit -H -n)
[ "$(ulimit -H -d)" == "unlimited" ] || ulimit -S -d $(ulimit -H -d)
# Thread count limit on NetBSD 7.
if ulimit -T &> /dev/null; then
[ "$(ulimit -H -T)" == "unlimited" ] || ulimit -S -T $(ulimit -H -T)
fi
# allow all.bash to avoid double-build of everything
rebuild=true
if [ "$1" = "--no-rebuild" ]; then