Exit after receiving SIGTERM
Signed-off-by: Michael Crosby <michael@docker.com>
This commit is contained in:
parent
e4ec7eadc3
commit
f5d12e100c
1 changed files with 1 additions and 0 deletions
|
@ -38,6 +38,7 @@ func Trap(cleanup func()) {
|
|||
if atomic.LoadUint32(&interruptCount) == 1 {
|
||||
// Call cleanup handler
|
||||
cleanup()
|
||||
os.Exit(0)
|
||||
} else {
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue