agent: don't replace config on SIGHUP if parsing fails

This commit is contained in:
Ryan Uber 2015-05-30 22:50:08 -07:00
parent 015c39baf5
commit 359abdb9a8
1 changed files with 3 additions and 1 deletions

View File

@ -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
}