mirror of
https://github.com/golang/go.git
synced 2024-09-21 10:28:27 +00:00
run.bash: rm bumping open files soft limit
Since CL 393354 this should no longer be necessary. Change-Id: Ie9a7f779515aaf8b40a4f0083ba680f7b0231f04 Reviewed-on: https://go-review.googlesource.com/c/go/+/585576 Auto-Submit: Ian Lance Taylor <iant@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Run-TryBot: Kirill Kolyshkin <kolyshkin@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
parent
27603028eb
commit
c3c97ad1bf
10
src/run.bash
10
src/run.bash
@ -41,15 +41,7 @@ export CC
|
||||
ulimit -c 0
|
||||
|
||||
# Raise soft limits to hard limits for NetBSD/OpenBSD.
|
||||
# We need at least 256 files and ~300 MB of bss.
|
||||
# On OS X ulimit -S -n rejects 'unlimited'.
|
||||
#
|
||||
# Note that ulimit -S -n may fail if ulimit -H -n is set higher than a
|
||||
# non-root process is allowed to set the high limit.
|
||||
# This is a system misconfiguration and should be fixed on the
|
||||
# broken system, not "fixed" by ignoring the failure here.
|
||||
# See longer discussion on golang.org/issue/7381.
|
||||
[ "$(ulimit -H -n)" = "unlimited" ] || ulimit -S -n $(ulimit -H -n)
|
||||
# We need at least ~300 MB of bss.
|
||||
[ "$(ulimit -H -d)" = "unlimited" ] || ulimit -S -d $(ulimit -H -d)
|
||||
|
||||
# Thread count limit on NetBSD 7.
|
||||
|
Loading…
Reference in New Issue
Block a user