0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00

core: Kill whole process if any server fail to start

This commit is contained in:
Matthew Holt 2015-05-01 13:35:17 -06:00
parent 9e3852f21c
commit 7ee3653342

View file

@ -72,7 +72,7 @@ func main() {
defer wg.Done() defer wg.Done()
err := s.Serve() err := s.Serve()
if err != nil { if err != nil {
log.Println(err) log.Fatal(err) // kill whole process to avoid a half-alive zombie server
} }
}(s) }(s)