Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unix: cap RLIMIT_NOFILE soft limit in TestRlimit on darwin
On some machines, kern.maxfilesperproc is 4096. If Rlimit.Cur is larger than that, Setrlimit will get an errEINVAL. Same as CL 246658 did in package syscall. Updates golang/go#40564 Change-Id: I8c45a23352fa2039772e04205680640e8a0e1840 Reviewed-on: https://go-review.googlesource.com/c/sys/+/250000 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matt Layher <mdlayher@gmail.com>
- Loading branch information