From cdf8a55670793a135a53549c5e1877c33a66be0c Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Wed, 13 Aug 2014 12:18:23 -0700 Subject: [PATCH] Exit after receiving SIGTERM Signed-off-by: Michael Crosby --- pkg/signal/trap.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/signal/trap.go b/pkg/signal/trap.go index 0f44481c2f..cbdfd1ff17 100644 --- a/pkg/signal/trap.go +++ b/pkg/signal/trap.go @@ -38,6 +38,7 @@ func Trap(cleanup func()) { if atomic.LoadUint32(&interruptCount) == 1 { // Call cleanup handler cleanup() + os.Exit(0) } else { return }