mirror of
https://github.com/clearlinux/docker.git
synced 2026-08-26 18:17:24 +00:00
Exit after receiving SIGTERM
Signed-off-by: Michael Crosby <michael@docker.com>
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