From 629e1439e819a7118ae483381d4634f16d3474dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Mon, 12 Jun 2017 20:32:30 +0200 Subject: [PATCH] commands: Make error on setting rlimit a warning only And reduce it to 10000. Closes #3582 --- commands/limit_darwin.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/limit_darwin.go b/commands/limit_darwin.go index b9d97773763..1635c847185 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) } } }