diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-06-12 20:32:30 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-06-12 20:35:19 +0200 |
commit | 629e1439e819a7118ae483381d4634f16d3474dd (patch) | |
tree | 192a13c7a4a656d7adc93092700a390a744b65a0 /commands/limit_darwin.go | |
parent | 26aa06a3db57ab7134a900d641fa2976f7971520 (diff) |
commands: Make error on setting rlimit a warning only
And reduce it to 10000.
Closes #3582
Diffstat (limited to 'commands/limit_darwin.go')
-rw-r--r-- | commands/limit_darwin.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/limit_darwin.go b/commands/limit_darwin.go index b9d977737..1635c8471 100644 --- a/commands/limit_darwin.go +++ b/commands/limit_darwin.go @@ -75,11 +75,11 @@ func tweakLimit() { jww.ERROR.Println("Unable to obtain rLimit", err) } if rLimit.Cur < rLimit.Max { - rLimit.Max = 999999 - rLimit.Cur = 999999 + rLimit.Max = 10000 + rLimit.Cur = 10000 err = syscall.Setrlimit(syscall.RLIMIT_NOFILE, &rLimit) if err != nil { - jww.ERROR.Println("Unable to increase number of open files limit", err) + jww.WARN.Println("Unable to increase number of open files limit", err) } } } |