Permalink
Browse files

commands: Make error on setting rlimit a warning only

And reduce it to 10000.

Closes #3582
  • Loading branch information...
bep committed Jun 12, 2017
1 parent 26aa06a commit 629e1439e819a7118ae483381d4634f16d3474dd
Showing with 3 additions and 3 deletions.
  1. +3 −3 commands/limit_darwin.go
View
@@ -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)
}
}
}

0 comments on commit 629e143

Please sign in to comment.