From 4268158c82837fcac6e559e5df827de6360a8ee5 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Tue, 3 May 2016 14:30:58 -0400 Subject: [PATCH] Properly handle sigint/hup --- command/server.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/command/server.go b/command/server.go index 6e9d744085..47ec3e0bf3 100644 --- a/command/server.go +++ b/command/server.go @@ -685,7 +685,6 @@ func MakeShutdownCh() chan struct{} { resultCh := make(chan struct{}) shutdownCh := make(chan os.Signal, 4) - signal.Notify(shutdownCh, os.Interrupt, syscall.SIGINT) signal.Notify(shutdownCh, os.Interrupt, syscall.SIGTERM) go func() { for { @@ -703,7 +702,7 @@ func MakeSighupCh() chan struct{} { resultCh := make(chan struct{}) signalCh := make(chan os.Signal, 4) - signal.Notify(signalCh, os.Interrupt, syscall.SIGHUP) + signal.Notify(signalCh, syscall.SIGHUP) go func() { for { <-signalCh