We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4a2f61c + 5cab0d3 commit 3ad49a2Copy full SHA for 3ad49a2
1 file changed
cmd/containerd-stress/rlimit_unix.go
@@ -31,6 +31,9 @@ func setRlimit() error {
31
}
32
if limit.Cur < rlimit {
33
limit.Cur = rlimit
34
+ if limit.Max < limit.Cur {
35
+ limit.Max = limit.Cur
36
+ }
37
if err := syscall.Setrlimit(syscall.RLIMIT_NOFILE, &limit); err != nil {
38
return err
39
0 commit comments