Browse Source

Merge pull request #7568 from crosbymichael/replace-7240

Exit after receiving SIGTERM
Michael Crosby 11 years ago
parent
commit
33fa175abf
1 changed files with 1 additions and 0 deletions
  1. 1 0
      pkg/signal/trap.go

+ 1 - 0
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
 						}