From 5226e29a691fcf78a034c4f3d249596672a43ac3 Mon Sep 17 00:00:00 2001 From: Ryan Uber Date: Sat, 30 May 2015 22:50:08 -0700 Subject: [PATCH] agent: don't replace config on SIGHUP if parsing fails --- command/agent/command.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/command/agent/command.go b/command/agent/command.go index e27b9bb476..008eed42d8 100644 --- a/command/agent/command.go +++ b/command/agent/command.go @@ -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 }