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 }