From e769ef2bc67e61513dba4768ec2a47f2036eb8af Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Mon, 21 Sep 2015 13:54:01 -0700 Subject: [PATCH] agnet: fixing inversion of LeaveOnInt --- command/agent/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/agent/command.go b/command/agent/command.go index 41ebd3953..1f206b4e6 100644 --- a/command/agent/command.go +++ b/command/agent/command.go @@ -325,7 +325,7 @@ WAIT: // Check if we should do a graceful leave graceful := false - if sig == os.Interrupt && !config.LeaveOnInt { + if sig == os.Interrupt && config.LeaveOnInt { graceful = true } else if sig == syscall.SIGTERM && config.LeaveOnTerm { graceful = true