From aad68df4be784071c6b55cf8cc25cc5e8c8ec55a Mon Sep 17 00:00:00 2001 From: Naitik Shah Date: Tue, 15 Oct 2013 10:50:08 -0700 Subject: [PATCH] stop signals once initial term has been processed. fixes #5 --- grace.go | 1 + 1 file changed, 1 insertion(+) diff --git a/grace.go b/grace.go index c2708f1..a254247 100644 --- a/grace.go +++ b/grace.go @@ -156,6 +156,7 @@ func Wait(listeners []Listener) (err error) { }(l) } wg.Wait() + signal.Stop(ch) return case syscall.SIGUSR2: rErr := Restart(listeners)