Merge pull request #7568 from crosbymichael/replace-7240
Exit after receiving SIGTERM Upstream-commit: 33fa175abf3bbd9322693ecc761ab8c6884a5546 Component: engine
This commit is contained in:
@ -38,6 +38,7 @@ func Trap(cleanup func()) {
|
||||
if atomic.LoadUint32(&interruptCount) == 1 {
|
||||
// Call cleanup handler
|
||||
cleanup()
|
||||
os.Exit(0)
|
||||
} else {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user