]> Cypherpunks repositories - gostls13.git/commitdiff
run.bash: rm bumping open files soft limit
authorKir Kolyshkin <kolyshkin@gmail.com>
Wed, 15 May 2024 01:09:04 +0000 (18:09 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 15 May 2024 15:02:23 +0000 (15:02 +0000)
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>

src/run.bash

index badb8c60e20f087462eb15b537150e0fee6d1656..cb474325c4ab27c5d1703facb75d0aec71e42013 100755 (executable)
@@ -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.