fatal error if the system can't set a rlimit

This commit is contained in:
alessio 2016-10-17 10:35:32 +02:00
parent 2b2c1c7314
commit 53841e02bd
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ func (r *realize) Increase() {
rLimit.Cur = r.Limit rLimit.Cur = r.Limit
err := syscall.Setrlimit(syscall.RLIMIT_NOFILE, &rLimit) err := syscall.Setrlimit(syscall.RLIMIT_NOFILE, &rLimit)
if err != nil { if err != nil {
fmt.Println(c.Red("Error Setting Rlimit "), err) log.Fatal(c.Red("Error Setting Rlimit "), err)
} }
} }