Skip to content

Commit

Permalink
Signal handling breaks parent code (coredns#1763) (coredns#1764)
Browse files Browse the repository at this point in the history
  • Loading branch information
sssilver authored and miekg committed May 3, 2018
1 parent 5735292 commit 59dbcd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion coremain/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
)

func init() {
caddy.TrapSignals()
caddy.DefaultConfigFile = "Corefile"
caddy.Quiet = true // don't show init stuff from caddy
setVersion()
Expand All @@ -41,6 +40,8 @@ func init() {

// Run is CoreDNS's main() function.
func Run() {
caddy.TrapSignals()

// Reset flag.CommandLine to get rid of unwanted flags for instance from glog (used in kubernetes).
// And readd the once we want to keep.
flag.VisitAll(func(f *flag.Flag) {
Expand Down

0 comments on commit 59dbcd3

Please sign in to comment.