From 53841e02bd0d6910e6faa8bdde9d9aeda695cab0 Mon Sep 17 00:00:00 2001 From: alessio Date: Mon, 17 Oct 2016 10:35:32 +0200 Subject: [PATCH] fatal error if the system can't set a rlimit --- app/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.go b/app/main.go index fde2abe..61ea2a4 100644 --- a/app/main.go +++ b/app/main.go @@ -83,7 +83,7 @@ func (r *realize) Increase() { rLimit.Cur = r.Limit err := syscall.Setrlimit(syscall.RLIMIT_NOFILE, &rLimit) if err != nil { - fmt.Println(c.Red("Error Setting Rlimit "), err) + log.Fatal(c.Red("Error Setting Rlimit "), err) } }