diff --git a/lib/osutil/rlimit_unix.go b/lib/osutil/rlimit_unix.go index 91405d00c..5b95dc481 100644 --- a/lib/osutil/rlimit_unix.go +++ b/lib/osutil/rlimit_unix.go @@ -36,7 +36,7 @@ func MaximizeOpenFileLimit() (int, error) { // macOS doesn't like a soft limit greater then OPEN_MAX // See also: man setrlimit if runtime.GOOS == "darwin" && lim.Max > darwinOpenMax { - lim.Cur = darwinOpenMax + lim.Max = darwinOpenMax } // Try to increase the limit to the max.