Skip to content

Commit

Permalink
agent: don't replace config on SIGHUP if parsing fails
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanuber committed May 31, 2015
1 parent 26d15e6 commit 5226e29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion command/agent/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,9 @@ WAIT:

// Check if this is a SIGHUP
if sig == syscall.SIGHUP {
config = c.handleReload(config)
if conf := c.handleReload(config); conf != nil {
config = conf
}
goto WAIT
}

Expand Down

0 comments on commit 5226e29

Please sign in to comment.