From 7ee3653342be5c3b6db59dae0f40e71a48c0f157 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Fri, 1 May 2015 13:35:17 -0600 Subject: [PATCH] core: Kill whole process if any server fail to start --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index fc7c84e5..5eca8342 100644 --- a/main.go +++ b/main.go @@ -72,7 +72,7 @@ func main() { defer wg.Done() err := s.Serve() if err != nil { - log.Println(err) + log.Fatal(err) // kill whole process to avoid a half-alive zombie server } }(s)