Merge pull request #7568 from crosbymichael/replace-7240

Exit after receiving SIGTERM
Upstream-commit: 33fa175abf3bbd9322693ecc761ab8c6884a5546
Component: engine
This commit is contained in:
Michael Crosby
2014-08-13 12:23:34 -07:00

View File

@ -38,6 +38,7 @@ func Trap(cleanup func()) {
if atomic.LoadUint32(&interruptCount) == 1 {
// Call cleanup handler
cleanup()
os.Exit(0)
} else {
return
}