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:
parent
9e3852f21c
commit
7ee3653342
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue